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

RE: meaning of (salary, bonus)

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 8 Jan 2003 14:33:50 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E621060453DF23@daemsg02.software-ag.de>
To: Mary Fernandez <mff@research.att.com>, Howard Katz <howardk@fatdog.com>
Cc: Michael Kay <Michael.Kay@softwareag.com>, www-ql@w3.org

> In the *path* expression:
> 
>   (salary, bonus)[. > 0]
> 
> the resulting salary and bonus elements whose content is 
> greater than zero will be in document order.  This is because 
> path expressions always yield sequences of nodes in document 
> order whereas sequence expressions yield sequences of nodes 
> in input order.

No, I don't think this is correct. [] does not cause the sequence it applies
to to be reordered. The language book has a problem in this area, which I
will raise on the TF list, but the formal semantics is correct, I believe.

Michael Kay
Received on Wednesday, 8 January 2003 08:34:02 GMT

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