[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: enumerating things (global counter)
> > It takes into account all "preceding" requirements, but "preceding" in > XPath terms doesn't include ancestors, and you want to include > ancestors in your numbering. So use: > > <xsl:value-of > select="count(preceding::requirement | > ancestor::requirement) + 1" /> > Or use <xsl:number level="any"/> which does much the same thing. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx 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
|