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

Re: Position() of parent node

Subject: Re: Position() of parent node
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 6 Feb 2001 10:29:45 -0800 (PST)
Re:  Position() of parent node
Hi Simon,

I guess that what you really wanted to obtain was:
 
count(../preceding-sibling::*) + 1

Please, note however, that the meaning of position depends of which
node-set the node is considered to be a member. A single node can have
different "positions" in different node-sets. As it was discussed in
this group just a few days ago, node-sets are considered unordered, but
there's an iherent ordering which is the "document order".

To that extent your question was not quite precise.

Cheers,
Dimitre Novatchev

Simon Cansick wrote:

Can anyone provide me with the syntax for getting the position() value
of
the current nodes' parent node (and the parent parent etc. position()
value).  I seem only able to return the current position(). 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

 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.