On Tue, 2017-10-24 at 12:41 +0200, Jan Lindblad wrote:
> 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.
I agree, it is not a low-hanging fruit, and IETF isn't the right place to
develop such things.
It is actually a shame that so many clever technologies are sort of wasted
because they are tightly connected to XML (instead of being applicable to
general tree-like data).
It is perhaps also worth noting that XPath 1.0 spec now includes a note that
basically declares it deprecated and unmaintained.
Lada
>
> /jan
>
> _______________________________________________
> netmod mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/netmod
--
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod