Subject: Re: a subtree filtering question

From: Andy Bierman <[email-masked]>
Date: Fri, 02 Feb 2007 09:22:26 -0800

Li Yan wrote:
> Hi,
> 
> I don’t understand the following two sentences in rfc4741.
> 
> 6.2.5.
> 
>    o  Filtering of mixed content is not supported.

Mixed content is text that can have embedded markup language in it.
HTML uses a lot of mixed content.  (like <p> within a <p> within a </p> </p>)
It is not mandatory to support this in NETCONF.

> 
>    o  Filtering of list content is not supported.
> 

A list is a whitespace-separated list of string values that
conform to a specific simple type

<element name="primes">
   <simpleType>
     <list itemType="xsd:int" />
   </simpleType>
</element>

<primes>1 3    5 7</primes>

   <get>
     <filter type="subtree">
       <primes>1 3 5 7</primes>
     </filter>
   </get>

If <primes> was a simple string, then this filter will not match
because the whitespace is different.  As a list, it should match,
but the agent has to ignore or normalize whitespace instead of
simply comparing the value.  IMO, list should be supported, but
I guess it is not mandatory.

> Who can show me two examples to explain what are ‘mixed content’ and 
> ‘list content’ respectively?
> 
> Thanks
> 
>  
> 
> Yan
> 

Andy

--
to unsubscribe send a message to [email-masked] with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>