You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ovidiu Predescu <ov...@cup.hp.com> on 2000/10/19 22:37:03 UTC
Re: Count siblings
On Thu, 19 Oct 2000 16:30:23 +0200, Rob van der Zeijden <r....@tiscon.de>
wrote:
> I want to count the number of siblings a element has in XSL.
> How???
Use:
<xsl:value-of select="count(preceding-sibling::* | following-sibling::*)"/>
A better forum for asking XSLT related questions is the XSLT list at
MulberryTech:
http://www.mulberrytech.com/xsl/xsl-list
Greetings,
--
Ovidiu Predescu <ov...@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://www.geocities.com/SiliconValley/Monitor/7464/