All,
I have the below XSLT
<xsl:template name="loop">
<xsl:param name="count" select="1"/>
<xsl:if test="$count > 0">
<xsl:text> </xsl:text>
<xsl:value-of select="$count"/>
<xsl:call-template name="loop">
<xsl:with-param name="count" select="$count - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
The way to call it is:
<xsl:call-template name="loop
<xsl:with-param name="count" select="100"/>
</xsl:call-template>
At the moment it displays numbers from 100 to 0 and space between them. (100 99 98 97.....)
How can I change it to do the opposite ? (1 2 3 4....)
Many Thanks,
M