This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: For Loop in XSLT


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]