W3C home > Mailing lists > Public > www-ql@w3.org > January to March 2004

RE: Query on the XML graph

From: Mary Fernandez <mff@research.att.com>
Date: 09 Feb 2004 14:39:25 -0500
To: Murali Mani <mani@CS.UCLA.EDU>
Cc: Michael Kay <Michael.Kay@softwareag.com>, Michael Brundage <xquery@comcast.net>, Jim Tivy <jimt@bluestream.com>, Jiang Ming Fei <mfjiang@cse.cuhk.edu.hk>, www-ql@w3.org
Message-Id: <1076355565.1528.32.camel@squeak.research.att.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:19 GMT