Rob,

>> The XPath mixed-quotes problem is well-known, and the suggested
>> solution seems to be use the "concat" function
>> 
>>    /foo/bar[name=concat("It's a", ' "valid" string')]
>> 
>> Not very user friendly, is it?
> 
> I suspect that this is unlikely to be popular, but I think that it would be 
> nice if there was a plan to move away from XPath, and define a YANG specific 
> equivalent instead.  Broadly it could follow the same format as XPath but be 
> defined against a YANG data tree, and bind to YANG's types.  We could get rid 
> of the bits of XPath that aren't really helpful or meaningful for YANG, and 
> add in some new functionality/fixes that are helpful to solve the YANG 
> specific problems related to path expressions.

The idea has some merit, and I understand the background for this sentiment. 
Trying not to be on either side at this point, I would just like to point out 
that this would mean a considerable amount of work. Both for the WG to define 
this language, and later, for implementors to implement it.

/jan

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to