This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Selection of every second node


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]