cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject Re: Count siblings
Date Thu, 19 Oct 2000 20:37:03 GMT
On Thu, 19 Oct 2000 16:30:23 +0200, Rob van der Zeijden <r.zeijden@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 <ovidiu@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://www.geocities.com/SiliconValley/Monitor/7464/



Mime
View raw message