Subject: Re: [xsl] counting loop in xslt From: Antonio Fiol <fiol@xxxxxxxxxx> Date: Tue, 28 May 2002 10:33:22 +0200 |
for (int a; a <= number;;a++){}
<xsl:template name="loop"> <xsl:param name="a" select="0" /> <!-- Use your a --> <xsl:value-of select="$a"> <!-- Test condition and call template if less than number --> <xsl:if test="$a < $number"> <xsl:call-template name="loop"> <xsl:with-param name="a" value="{$a + 1}" /> </xsl:call-template> </xsl:if> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] counting loop in xslt, Pfitzner, Jan | Thread | Re: [xsl] counting loop in xslt, David Carlisle |
[xsl] counting loop in xslt, Pfitzner, Jan | Date | Re: [xsl] counting loop in xslt, David Carlisle |
Month |