T
Tjerk Wolterink
Hello,
I want to create m elements in this form:
<element index="n"/>
Where n = 1 2 .. m
Can is do this with an xsl:for loop??
And if so how
For example for m = 4
<xsl:variable name="m" select="4"/>
<xsl:for-each select="1 to m">
<element index="{position()}"/>
</foreach>
Output:
<element index="1"/>
<element index="2"/>
<element index="3"/>
<element index="4"/>
Is this possible with xslt 1.0 ?
I want to create m elements in this form:
<element index="n"/>
Where n = 1 2 .. m
Can is do this with an xsl:for loop??
And if so how
For example for m = 4
<xsl:variable name="m" select="4"/>
<xsl:for-each select="1 to m">
<element index="{position()}"/>
</foreach>
Output:
<element index="1"/>
<element index="2"/>
<element index="3"/>
<element index="4"/>
Is this possible with xslt 1.0 ?