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

Re: childnum of node

Subject: Re: childnum of node
From: "Nikolai Grigoriev" <grig@xxxxxxx>
Date: Sat, 11 Dec 1999 01:38:50 +0300
tree childnum
Jeremy Richman wrote:


>Is there a way to get the childnum of a node into a variable, besides
using:
>1+count(preceding-sibling::*)


In most cases, when the current node list is just a list of siblings, you
can use
position(). In a general case, <xsl:number count="*"/> gives you the
childnum
as a result tree fragment, regardless of the current node list; to use it in
an
expression context, you have to paste it into an xsl:variable (and it grows
more
verbose than your initial solution ;-( - sorry).

Nikolai



 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.