Subject: RE: [Simple] [Fwd: Re: NETCONF WG meeting minutes for IETF #57]

From: [email-masked]
Date: Thu, 18 Sep 2003 17:44:17 +0300

> -----Original Message-----
> From: ext Henning Schulzrinne [mailto:[email-masked]]
> Sent: Wednesday, September 17, 2003 11:05 PM
> To: Khartabil Hisham (NMP-MSW/Helsinki)
> Cc: [email-masked]; [email-masked]; [email-masked]
> Subject: Re: [Simple] [Fwd: Re: NETCONF WG meeting minutes 
> for IETF #57]
> 
> 

> 
> > Supported
> > ---------
> > Note: any combination of these is possible
> > - selecting root element: /
> > - selecting all elements: //
> 
> Does this include things like 'element named <status>'?
> 
> > - selecting all enclosed elements: *
> > - selecting attributes: @
> > - selecting elements using attributes as keys: [@x]
> > - selecting element using attribute and its value as key: [@x='y']
> 
> Can you give a use case for the ones below?

Let me give you some examples:

- A watcher wishes to get the tuple that has a <class> element with value "IM". The watcher has to either explicitly list all the elements that can appear in a tuple that it wants to receive, or alternatively, it tells the PA to deliver the tuple that has element <class>IM</class> with all the other elements that appear in that tuple. Its like using a key for selecting a whole tuple. The latter can be achieved using the following expression:

//*[rpid:class="IM"]/descendant-or-self::*

This actually selects the whole tuple only. if the watcher wants to select the tuple and the root element <presence>, you would do something like:

//*[rpid:class="IM"]/descendant-or-self::*  | //*[rpids:label="im"]/ancestor::*

- The following is an example of how you can ask a PA to include all tuples that are not of <class> IM:

//*[rpid:class="IM"]/following::* | //*[rpid:class="IM"]/preceding::*

- A watcher asks the PA to deliver a tuple that has a <basic> status of "closed", but it only wants the elements that are not <status>

//*[basic="closed"]/following-sibling::* | //*[basic="closed"]/preceding-sibling::* | //*[basic="closed"]/ancestor::tuple

Again, this is if you don't want to indicate explicitly all the elements that you want.

/Hisham
> 
> > - selecting descendents: descendent:: , descendent-or-self::
> > - selecting ancestors: ancestor:: , ancestor or self::
> > - selecting siblings: following-sibling:: , preceding-sibling::
> > - selecting following and preceding elements: following:: , 
> preceding::
> 
> 
> 
> 
> 

_______________________________________________
Simple mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/simple