Re: Matching templates, named templates or for-each? My rules of

Dunno really: perhaps because with <xsl:apply-templates> there’s always the chance that some other template might be invoked accidentally (I’ve lost count of the number of times I’ve forgotten to put the right mode on an <xsl:apply-templates>).

I agree about named templates being used less in XSLT 2.0: it’s not just a matter of having functions instead, but XSLT 2.0 being more powerful anyway, and therefore being able to do much more without resorting to recursion.

Reply

The content of this field is kept private and will not be shown publicly.