W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2004

Re: Question regarding order in XPath

From: Philippe Michiels <philippe.michiels@ua.ac.be>
Date: Fri, 21 May 2004 21:30:00 +0200
To: Murali Mani <mani@CS.UCLA.EDU>
Cc: www-ql@w3.org
Message-Id: <200405212130.00900.philippe.michiels@ua.ac.be>

Doesn't the XPath 2.0 rec. specify the attribute and namespace axes as forward 
axes?

  http://www.w3.org/TR/xpath20/#axes

It also states that only reverse axes bind the position variable in reverse 
order:

  http://www.w3.org/TR/xpath20/#id-predicates

Cheers,
Philippe

On Friday 21 May 2004 21:17, Murali Mani wrote:
> Hi:
>
> I believe this should be mentioned somewhere in the spec; but I could not
> find it..
>
> I see that in XPath you mention that forward axes return a sequence of
> nodes in document order, and reverse axes return a sequence of nodes in
> reverse document order.
>
> My question is regarding attribute and namespace axes; they are classified
> as forward axes; so what is the result order?
>
> best, murali.

-- 
Philippe Michiels
Universiteit Antwerpen
ADReM (Advanced Database Research and Modelling)
http://www.adrem.ua.ac.be/~michiels
Received on Friday, 21 May 2004 15:30:12 GMT

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