This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: For Loop in XSLT
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 3 May 2002 12:56:10 +0100
- Subject: RE: [xsl] For Loop in XSLT
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Bagchi Ratul
> Sent: 03 May 2002 11:37
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] 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