RE: [xsl] Best way to count siblings

Subject: RE: [xsl] Best way to count siblings
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 15 Dec 2004 09:18:01 +0200
Hi,

> Is this the best way to count siblings?
>
> <xsl:value-of select="count(preceding-sibling::* |
> following-sibling::*)"/>

Or e.g.

  count(../*) - 1

Cheers,

Jarno

Current Thread