There is <xsl:for-each> (and <xsl:apply-templates>) to iterate over a
node-set, but for more general iteration, you use recursion as you have
already discovered.
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Bagchi Ratul
> Sent: 03 May 2002 11:37
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: For Loop in XSLT
>
>
> Hi,
> I was just wondering if there is something like the for loop
> we have in
> other languages. I simulated it by recursively calling a template from
> itself. But I was not sure whether it is the only/best method.
> Can somebody throw some light on it.
>
> Regards,
> Ratul.
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|