[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Interpretation of (preceding::foo)[1]


Subject: RE: Interpretation of (preceding::foo)[1]
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 2 Dec 1999 14:10:17 -0000

> If they are considered as expressions, then preceding::foo[1] is a
> location path treated as an expression while (preceding::foo)[1] is
> directly an expression consisting of the parenthesized expr
> (preceding::foo) narrowed by the predicate[1], and the child axis
> isn't applied, despite what the note says.
> 
The spec is really trying to exercise your brain in this area, it says in
3.3 that "the predicate filters the node-set with respect to the child
axis", purely as a device for ensuring that every predicate has an
associated axis and therefore an associated direction. It's a peculiar way
of saying that the nodes are filtered in document order, and has nothing to
do with the nodes being children of any common parent.

Took me a while to work out!

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread