[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Selection of every second node


Subject: Re: [xsl] Selection of every second node
From: "Heiko Rupp" <heiko.rupp@xxxxxxxxxxxxx>
Date: Tue, 21 Aug 2001 14:10:53 +0200

From: "Conny Kreyßel" <Conny.Kreyssel@xxxxxxxxxxxxxx>

> 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



Current Thread