Subject: Re: Nicer way to change context-node than xsl:for-each ?
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Sun, 6 Dec 2009 04:25:58 -0800 (PST)
|
Mukul Gandhi wrote:
Hi,
> I guess, xsl:call-template is retained in XSLT
2.0 due to
> backward compatibility with XSLT 1.
Named templates and
functions are not the same beasts. The first difference that come to my mind
is that the sequence ctor of a function is always evaluated in temporary
output state.
But true, for some usages (a lot of usage, for a right
definition of "a lot") a function can be used instead of a named template.
Regards,
--
Florent Georges
http://www.fgeorges.org/
|