xsl-list
[Top] [All Lists]

Re: [xsl] do somthing x times

2011-01-26 04:48:17
Szabo, Patrick (LNG-VIE) wrote:

How do I tell a template to do something a specific number of times.
I want to do something like "for each" only I have a number instead of
elements.

For example a certain attribute is 6 then I want to create 6 elements.

  <xsl:for-each select="1 to 6">
     <item><xsl:value-of select="."/></item>
  </xsl:for-each>

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>