[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:for or xsl:repeat
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|