RE: Query on the XML graph

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 <mff@research.att.com>
AT&T Labs - Research

Received on Monday, 9 February 2004 14:37:07 UTC