[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Counting preceding nodes
Billie,
At 01:29 PM 6/24/2005, you wrote: I gave the diagrams the appropriate names so you could see what I was looking for, but basically, This statement of the problem suggests it might be handled with the xsl:number instruction, which is designed to do this. You might want <xsl:number level="any"/>. A good XSLT reference will help. I've tried all sorts of combinations but nothing seemed to work. One logical structure I came up Yes (sort of), but there are also easier ways, such as using "count(preceding::diagram)". You don't need to worry about counting ancestors unless diagrams are allowed to contain other diagrams. But xsl:number is the thing to use unless there's some reason not to. Cheers, Wendell
|
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
|