RE: [xsl] Is xsl:for-each "syntactic sugar"?

Subject: RE: [xsl] Is xsl:for-each "syntactic sugar"?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 7 May 2010 18:27:22 +0100
> >> 4. Favor recursive functions over xsl:for-each. (True or False)
> >
> > Totally wrong, as it is much more complex to read and 
> understand as a 
> > simple loop.
> 
> Very interesting -- my experience with XSLT is completely different.
> I think the use of apply-templates with a mode is much easier 
> to read and understand than for-each.

I think Roger was discussing for-each versus recursive functions, not
for-each versus apply-templates.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Current Thread