xsl-list
[Top] [All Lists]

RE: Best way to count siblings

2004-12-15 00:18:01
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>