On Thu, May 12, 2016 at 09:28:25AM +0000, Bogaert, Bart (Nokia - BE) wrote: > Juergen, > > Thanks for the feedback. > With respect to functions available when using XPATH: XPATH 1.0 refers to a > Core Function Library. All the functions defined in there (Node set > functions, string functions, Boolean and number functions) are available in > a YANG XPATH context?
The YANG specification refers to XPath 1.0 and https://www.w3.org/TR/1999/REC-xpath-19991116/#corelib (section 4 Core Function Library) says This section describes functions that XPath implementations must always include in the function library that is used to evaluate expressions. and hence I think a compliant implementation must support the XPath 1.0 Core Function Library. > How wide-spread XPATH 2.0 and 3.0 is I also do not have an idea (I'm > currently "playing" with BaseX and there these versions are supported as far > as I know) but the fact that there are multiple versions of the standard can > cause confusion about what is "in" and what is "not in". As far as I understand, libxml2 does not support XPath 2.0 (or 3.0) and having a well maintained open source XPath 2.0 implementation in C is likely of some importance. > So if, for > RFC6020bis, the supported set of functions is: > 1. the Core Function library of XPATH 1.0 > 2. the added functions listed in RFC6020bis > We could conclude that the functionality is "confined". Maybe a statement > about full support of the Core Function Library of XPATH 1.0 in the RFC > could take away that ambiguity? I agree that it is not explicitely stated that YANG 1.1 requires the support of 1. and 2. (see above) but if you follow the references to XPath 1.0, I think it is implicitely clear. /js -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <http://www.jacobs-university.de/> _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
