There's an example in 6.2.1 which says:
<filter type="subtree">
<top xmlns="http://example.com/schema/1.2/config"/>
</filter>
In this example, the <top> element is a selection node, and only this
node and any child nodes (from the underlying data model) in the
'http://example.com/schema/1.2/config' namespace will be included in
the filter output.
Which is not compatible with what you say above.
Suppose we have this in the database:
<if:interfaces xmlns:if="http://example.com/interface">
<if:interface>
<if:ifIndex>1</if:ifIndex>
<if:ifType>ds0</if:ifType>
<ds0:circuitIdentifier xmlns:ds0="http://example.com/ds0">foo</ds0:circuitIdentif
ier>
</if:interface>
</if:interfaces>
Accordning to the example in 6.2.1, the following filter:
<get>
<filter>
<if:interfaces xmlns:if="http://example.com/interface"/>
</filter>
</get>
would return
<if:interfaces xmlns:if="http://example.com/interface">
<if:interface>
<if:ifIndex>1</if:ifIndex>
<if:ifType>ds0</if:ifType>
</if:interface>
</if:interfaces>
I would rather see all of <if:interface> emitted.
So would I. My question is how the specs should be interpreted. And
a follow-up question is if the specs should be changed in the future.
What about this filter:
<get>
<filter>
<if:interfaces xmlns:if="http://example.com/interface"
xmlns:ds0="http://example.com/ds0"/>
</filter>
</get>
Here we have two xmlns attributes. Would we get the ds0 elements in
this case?
Remember that the use of xmlns is only an encoding issue. The XML
information model defines the element as belonging to a namespace,
and the prefix (and the xmlns attribute that defines the prefix
mapping) is an encoding issue, not a semantic one.
Yes I know. That's what I tried to say in my email.
This means that an unused prefix is meaningless, so trying to
use 'xmlns:ds0' like this won't work.
/martin
--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>