This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Selection of every second node
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Selection of every second node
- From: "Heiko Rupp" <heiko dot rupp at wiredminds dot de>
- Date: Tue, 21 Aug 2001 14:10:53 +0200
- References: <C3AD14C7A9EED31188EB00104B0756FD167D9C@NT-EXCHANGE>
- Reply-To: xsl-list at lists dot mulberrytech dot com
From: "Conny Kreyßel" <Conny.Kreyssel@inter-forum.de>
> I hope you can help me. How can I make a template that match with every
> second node?
Try something along
<xsl:template match="root">
<xsl:for-each select="node[position() mod 2 = 0]">
... do whatever
</xsl:for-each>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list