Hi Martin, As per the discussion in https://www.ietf.org/mail-archive/web/netmod/current/msg01984.html, the understanding is that
<config> <foo>fred</fred> </config> Will select both the records: <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> "Since there is a node in the data store that matches the content match node <foo>fred</foo>, all sibling nodes at this level are selected." This was the explanation given that time. Q1: Can you please clarify as to why the Record 2 is not selected as per RFC 6241. Q2: Whether to select Record 2 only, user need to provide all its leaf-list elements values in the query request? With Regards, Rohit -----Original Message----- From: Martin Bjorklund [mailto:[email protected]] Sent: 16 December, 2016 17: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
