On Wed, Jul 06, 2005 at 09:59:35AM +0200, Vincent Cridlig wrote:
To improve this, what I suggest is to modify XPath filtering a little bit.
Most programming languages allow to define a namespace context before
applying an XPath expression to a document.
It would be nice to allow namespaces contexts definition in the Netconf
requests:
<filter type="xpath">
<expression>//net:network/if:interfaces/if:iface/if:name</expression>
<ns-contexts>
<ns-context>
<ns-short>net</ns-short>
<ns-long>urn:network:data:model</ns-long>
</ns-context>
<ns-context>
<ns-short>if</ns-short>
<ns-long>urn:network:interfaces:data:model</ns-long>
</ns-context>
</ns-contexts>
</filter>
I think this WG is not the right place to change XPath. Some of us have
quite some experience with adapted subsets and I prefer not to do this
again. Subsetting for conformance might be OK, adapting is IMHO a poor
choice.
If relative paths are a real issue, why can a device not use a hash table
lookup to find out where potential starting points in its schemas are?
Yes, this might require some more coding but at the end there is the
benefit that you do not have to invent something special which might
bite you when XPath gets revised.
/js