Re: my nearest sibling

Subject: Re: my nearest sibling
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 6 Jul 1999 17:20:28 +0100 (BST)
> when processing <item>, I want to get my paws on the associated
> <label>.

isn't that from-previous-siblings(label[1]) ?

> Is this really trivial and I am being dense? should

>  "../label[position()]"

> work?

no. position() returns the position of the node currently under
consideration so things like [position()=3] gets the third thing in the
node list. [3] is short for  [position()=3] so I suppose (without
checking or trying it out) that [position()] is short for 
[position()=position()] which is always true.


 XSL-List info and archive:

Current Thread