Subject: RE: [xsl] xsl:for or xsl:repeat From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 24 May 2006 16:41:21 +0100 |
> 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:for or xsl:repeat, Dimitre Novatchev | Thread | RE: [xsl] xsl:for or xsl:repeat, Mark Williams |
Re: [xsl] xsl:for or xsl:repeat, Dimitre Novatchev | Date | RE: [xsl] xsl:for or xsl:repeat, Mark Williams |
Month |