How can I set up a <xsl:for-each...> method that uses an <xsl:if...> statement to display specified number of nodesets?
I'm basically wanting to display a set of data from an XML doc in a 3-column display using CSS positioning using <div> tags.
This is how I'd like it to be set up, but I'm not sure how to accomplish the "COUNT" of the nodesets:
Code:
<xsl:for-each select="root/element">
<xsl:if test="COUNT <= '10'>
<div id="columnA">
<xsl:value-of select="childnode" />
</div>
</xsl:if>
<xsl:if test="COUNT >= '11' and COUNT <= '20'>
<div id="columnB">
<xsl:value-of select="childnode" />
</div>
</xsl:if>
<xsl:if test="COUNT >= '21' and COUNT <= '30'>
<div id="columnC">
<xsl:value-of select="childnode" />
</div>
</xsl:if>
</xsl:for-each>
Any & all help is appreciated. Thanks.
KWilliams