I'm looking for a function similar to to for-each, but
instead I will have a value passed from the xml which will be
a number and I will have to iterate for that number. What I need is:
eg <xsl:for nooftimes="2">
In XSLT 2.0 use
<xsl:for-each select="1 to $n">
In XSLT 1.0 the usual workaround is
<xsl:for-each select="//node()[position() < $n]">
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--