Return to Snippet

Revision: 55269
at February 1, 2012 03:18 by dammark


Updated Code
<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 &lt; $boundary">
    <xsl:call-template name="sections">
      <xsl:with-param name="i" select="$i + 1" />
    </xsl:call-template>
  </xsl:if>
</xsl:template>

Revision: 55268
at February 1, 2012 03:14 by dammark


Initial Code
<xsl:template name="increment">
  <xsl:param name="i" select="1" />
  
  <xsl:value-of select="$i" />
  
  <xsl:if test="$i &lt; '11'">
    <xsl:call-template name="sections">
      <xsl:with-param name="i" select="$i + 1" />
    </xsl:call-template>
  </xsl:if>
</xsl:template>

Initial URL
xslt-increment

Initial Description
When you want to increment a value in XSLT, this is an option.

Initial Title
Increment value in XSLT

Initial Tags

                                

Initial Language
XSLT