/ Published in: XSLT
When you want to increment a value in XSLT, this is an option.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<xsl:template name="sections"> <xsl:param name="i" select="1" /> <xsl:param name="boundary" select="11" /> <xsl:value-of select="$i" /> <xsl:if test="$i < $boundary"> <xsl:call-template name="sections"> <xsl:with-param name="i" select="$i + 1" /> </xsl:call-template> </xsl:if> </xsl:template>
URL: xslt-increment