/ Published in: XSLT
URL: xslt-increment
When you want to increment a value in XSLT, this is an option.
Expand |
Embed | Plain Text
<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>
You need to login to post a comment.
