[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subtree filtering: content match nodes



Martin Bjorklund wrote:
Li Yan <liyan_77@huawei.com> wrote:
Hi,
There is no such text (like sec. 6.2.5) to describe how the XPath
filter matches the leaf node content in RFC 4741.  Does XPath
filtering have the same issue?

I don't think so.  XPath defines comparisons in terms of the nodes'
string-values (possibly by converting to a number).

However, what the string-value for a particular element looks like
isn't defined.  If you use XSD or RelaxNG, you probably will use the
canonical representation of the lexical value in replies to
<get>/<get-config>.  IMO, this is something a "SMI for NETCONF" has to
address.

IMO, subtree filtering should also have been defined to not be
data-model agnostic, and instead compare the canonical form. which
depends on the type.


Agreed.
My biggest concern is preventing a situation where the same XML
used in an <edit-config> works differently than when used in a <get>.

For example, if an agent accepts "1.00", "1.0", or "1", as the
value of an 'float' index component during an edit operation,
and they all resolve to the same data model entry (e.g., /foo[index=1.0]),
then those index values should also resolve to that same entry
when used in a <filter> element.



/martin

Andy

--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>