[Home] [By Thread] [By Date] [Recent Entries]


[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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member