On 10/11/18 11:21 AM, Andy Bierman wrote:

So you must mean the full module name will be used at every node:

 
/ietf-interfaces:interfaces/ietf-interfaces:interface[ietf-interfaces:name='eth0']

Length is the only real problem I see with the solution. The lexical representation of identityref type has made a compromise accepting prefix instead of module name. This has its own unsolved issues but those could be addressed by a limitation not allowing modules with identical prefix statements to define homonyme data nodes and identities (which is not the case currently). If this is done module name can be replaced with prefix and the instance-identifiers will be shorter and encoding independent but still Xpath 1.0 compatible:

 /if:interfaces/if:interface[if:name='eth0']

Vladimir

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to