salut tout le monde

savez vous comment transormer ce code en un code dynamiqye avec une boucle equivalente à celle de for dans java ou c

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
<xsl:choose>
		<xsl:when test=". &lt;= 100">
			<xsl:value-of select="."/>
		</xsl:when>
 
		<xsl:otherwise>
			<xsl:value-of select="substring(substring(., 1), 1, 120)"/>
			<fo:block>
			<xsl:value-of select="substring(substring(., 121), 1, 90)"/>
			</fo:block>
			<fo:block>
			<xsl:value-of select="substring(substring(., 211), 1, 90)"/>
			</fo:block>
			<fo:block>
			<xsl:value-of select="substring(substring(., 301), 1, 90)"/>
			</fo:block>
			<fo:block>
			<xsl:value-of select="substring(substring(., 391), 1, 90)"/>
			</fo:block>
			<fo:block>
			<xsl:value-of select="substring(substring(., 481), 1, 90)"/>
			</fo:block>
			<fo:block>
			<xsl:value-of select="substring(substring(., 571), 1, 90)"/>
			</fo:block>
			<fo:block>
			<xsl:value-of select="substring(substring(., 661), 1, 90)"/>
			</fo:block>
			<fo:block>
			<xsl:value-of select="substring(substring(., 751), 1, 90)"/>
			</fo:block>
 
		</xsl:otherwise>
	</xsl:choose>
mais je veux que ma boucle soit infinie du genre tantque 1>0
j'ai essayé avec ce code mais ca marche pas !

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
<xsl:template name="Boucle">
			<xsl:param name="i"/>
			<xsl:if test="i<10000">
			<fo:block>
			<xsl:value-of select="substring(substring(., i), 1, 90)"/>
			</fo:block>
 
 
			<xsl:call-template name="Boucle">
			<xsl:with param name="i" select="number($i)+90"/>
			</xsl:call-template>
			</xsl:template>
merci pour votre aide