[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: my nearest sibling

Subject: Re: my nearest sibling
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 6 Jul 1999 17:20:28 +0100 (BST)
Re: my nearest sibling
> 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.

David


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.