[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: retrieval filtering decision points



On 10. Jun 2004, at 21:08, Juergen Schoenwaelder wrote:

On Thu, Jun 10, 2004 at 11:58:05AM -0700, Andy Bierman wrote:

What I do not yet understand is how namespaces play with this. I guess
this needs more thought and investigation.

Either:


  <rpc message-id="101" xmlns="netconf-uri">
    <get>
      <data xmlns="http://example.com/schema-1"/>
    </get>
  </rpc>

or:

  <rpc message-id="101" xmlns="netconf-uri">
    <get>
      <data>
        <filter filter-type="namespace">
          http://example.com/schema-1
        </filter>
      </data>
    </get>
  </rpc>

I am not sure as long as I do not know the details how xpath works together with namespaces. As I said, this needs more thoughts (at least on my side).

The native way to filter based on a namespace could simply be achieved through XPath and look like this:

<?xml version="1.0"?>
<rpc xmlns="netconf-uri"
     xmlns:s1="http://example.com/schema-1";
     message-id="101">
  <get-config select="s1:*"/>
</rpc>


-- 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/>