RE: Query on the XML graph
Mary Fernandez <[email protected]>
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Organization | AT&T Labs - Research |
| Message-ID | <[email protected]> |
On Mon, 2004-02-09 at 14:23, Murali Mani wrote: > thanks, that helps. if the below two are equivalent; then we do not really > need separate axis. This is convenient. > > > > rough example: manager of managers: > > > Id(Id(//Employee/@ReportsTo)/@ReportsTo) > > > > You can write this as > > > > //Employee/id(@ReportsTo)/id(@ReportsTo) > > I suppose the above semantics is also correct, with duplicate elimination; > no employee will be returned multiple times? Correct. All path expressions yield a sequence of nodes in document order with no duplicates. -- Mary Fernandez <[email protected]> AT&T Labs - Research