But how can I use the index in the loop to write :
as always in a for-each the current item can be accessed with .
<xsl:for-each select="1 to 10">
<br><b><xsl:value-of select="."/></b> hello world!
</xsl:for-each>
And of course you can also do
<xsl:for-each select="1 to 10">
<br><b><xsl:value-of select="position()"/></b> hello world!
</xsl:for-each>
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--