On Thu, May 12, 2016 at 08:33:36AM +0000, Bogaert, Bart (Nokia - BE) wrote: > Hi, > > Not sure whether this has been requested before but has it ever been > considered to support higher versions of XPATH in YANG? As far as I remember > only XPATH 1.0 is supported in YANG although the RFC mentions adopting of > XPATH 2.0 with respect to handling of unprefixed names. RFC6020bis lists a > set of functions that have been added and that are available in an XPATH > context. XPATH itself at this moment is at version 3.1. Some questions: > - are there any plans to follow the XPATH evolution in YANG?
So far, XPATH 2.0 has been considered too complex to require and there were concerns of how widespread support there is for XPATH 2.0 (and 3.0 was never mentioned I think). > - to me at least it is not specifically clear what is and what is not > supported w.r.t. XPATH in YANG. Is there no clarification required in this > context? Can you further detail what you find missing or unclear in draft-ietf-netmod-rfc6020bis-12.txt regarding xpath? Simply search for xpath, there is quite some text in various places. > Certain checks can't be expressed using an XPATH and require XQUERY (e.g. > when one need to follow a linked list in case of a lookup of a specific > node). Are there any plans to include support for XQUERY in YANG? So far not. Note that the goal so far has been to be somewhat conservative, that is, to add features based on a good understanding which real-world problems are being solved and ideally based on implementation and even better early deployment experience. (A new feature that has been implemented and successfully used as proprietary extensions is likely more important to consider than something that exists as an idea on paper only). /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
