This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Selection of every second node
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Selection of every second node
- From: Conny Kreyßel <Conny dot Kreyssel at INTER-FORUM dot DE>
- Date: Tue, 21 Aug 2001 13:41:55 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
I hope you can help me. How can I make a template that match with every
second node?
<root>
<node>trash</node>
<node>text</node>
<node>trash</node>
<node>text</node>
<node>trash</node>
<node>text</node>
</root>
and I would use a template like this:
<xsl:template match="node[every-second()]">
make something
</xsl:template>
and the result should be:
text
text
text
I tried it with variables but it doesnt works.
Thanks for any hints.
Best regards
Conny
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list