http://onionworks.net/2004/renderengine/utility

createIteration (count : int) : nodeset

A loop with a fixed number of iterations can be executed with the method “createIteration”. The number is specified by the parameter “count”.

<xsl:for-each select="util:createIteration(10)">
<xsl:value-of select="position()" />
<xsl:if test="position() != last()"> | </xsl:if>
</xsl:for-each>
Output of numbers with an iteration

The example shows a loop with ten iterations. The current index is output for each iteration.
Output: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10