|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: childnum of node
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








