Re: XPath question
you may prefer to to just generate your 1.2.3 number directly using <xsl:number/> but to answer the question > I have struggled in vain today to come up with an XPath expression > which would tell me how many elements are on the preceding-sibling axis > of the parent of a given node. count(../preceding-sibling::*) if by given node you mean current node, if $x is the given node then: count($x/../preceding-sibling::*) David 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