Re: [xsl] do somthing x times

Subject: Re: [xsl] do somthing x times
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 26 Jan 2011 11:48:03 +0100
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/

Current Thread