RE: meaning of (salary, bonus)

> 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 UTC