[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Best way to count siblings
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Wed, 15 Dec 2004 06:45:47 +0100
You could do:

<xsl:value-of select="count(../*) - 1"/>

Can't tell which is better or quicker...

Cheers,
Geert

Karl Stubsjoen wrote:
Is this the best way to count siblings?

<xsl:value-of select="count(preceding-sibling::* | following-sibling::*)"/>




-- Geert.Josten@xxxxxxxxxxx IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member