Whether condition as below:

 <config>
   <foo>fred</fred>
   <foo>barney</foo>
 </config>

Can select below record ?
<config>
   <foo>barney</foo>
   <foo>fred</fred>
 </config>

Basically , whether leaf-list with [barney, fred] are treated as same as 
leaf-list with [fred, barney] ? In ordered-by system the order does not matter 
to user, so it can be treated as same ?
I think in the ordered-by user case, this treatment cannot be extended. Please 
clarify.


-----Original Message-----
From: Martin Bjorklund [mailto:[email protected]] 
Sent: 16 December, 2016 18:47
To: Rohit R Ranade
Cc: [email protected]; [email protected]
Subject: Re: [netmod] [Netconf] Leaf-list usage

Rohit R Ranade <[email protected]> wrote:
> Hi,
> Consider we have 2 records as given below  
>   <config> (Rec1)
>     <name>10</name>
>     <foo>fred</foo>
>   </config>
>   <config> (Rec2)
>     <name>20</name>
>     <foo>fred</foo>
>     <foo>barney</foo>
>     <foo>wilma</foo>
>     <foo>someother</foo>
>   </config>
> 
> Q1 : Using subtree filtering which condition on the leaf-list node can
> the user give such that he selects the record which contains foo=fred
> only...
>    [we can assume user does not know the value of "name"]

 <config>
   <foo>fred</fred>
 </config>


> Q2 : Also about the leaf-list, I have tried searching but have not
> found how this leaf-list originated ?

1 instance of a scalar type  => leaf
N instances of a scalar type => leaf-list
1 instance of a structure    => container
N instances of a structure   => list

>  Whether XSD list is the
> representation for leaf-list in xsd ?

No.

>      The XSD list is represented slightly differently as per
>      http://www.w3schools.com/xml/el_list.asp : <stringvalues>I love XML
>      Schema</stringvalues>

Correct.


/martin

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to