Re: [xml-dev] XSLT For-Loop technique

From
Thomas B. Passin <>
To
Date
2002-03-11T05:05:16Z
ID
<002601c1c8ba$570ee230$0bf13044@tbp>
Thread
Re: [xml-dev] XSLT For-Loop technique
[Matt XML]

> What is the best way (if there is one) to implement the equivalent of a
> for-loop in xslt?

It's usually xsl:apply-templates, but sometimes it's desirable to use
xsl:for-each instead.  There are some subtleties in each one's use, but most
people advise the use of xsl:apply-templates unless you actually need
xsl:for-each.

xslt questions are best asked on the Mulberry xslt list - this question
comes up often enough, you can search the archives and xslt FAQ sites (like
the dpawson site).

Cheers,

Tom P