[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Counting preceding nodes


Subject: RE: [xsl] Counting preceding nodes
From: "Kevin Bird \(Matrix\)" <kevin.bird@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Jan 2005 16:41:14 -0000

Thank you.

Kevin 

> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx] 
> Sent: 07 January 2005 16:29
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Counting preceding nodes
> 
> 
> <xsl:number level="any" from="level1"/>
> 
> but if you really need xpath then
> 
> count(preceding-sibling::level3) + 
> count(../preceding-sibling::*/level3)
> 
> David
> 
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star. The 
> service is powered by MessageLabs. For more information on a 
> proactive anti-virus service working around the clock, around 
> the globe, visit:
> http://www.star.net.uk
> ______________________________________________________________
> __________


Current Thread
Keywords