xsl-list
[Top] [All Lists]

Re: [xsl] [xslt 2.0] Difference betwen functions and templates

2007-07-19 06:41:34
On 7/19/07, Justin Johansson <procode(_at_)tpg(_dot_)com(_dot_)au> wrote:
The bottom line is that named templates and functions are essentially
the same thing and it would have been possible for XSLT 2.0 to do
away with either xsl:call-template or xsl:function.

They probably look similar, but IMHO both are useful members of XSLT
2.0. As you also said, xsl:function can be called from within an XPath
expression (and, this is a very important difference) while
xsl:template cannot be.

I feel, having xsl:template in XSLT 2.0 is very important, for XSLT
2.0 to be backward compatible with XSLT 1.0.

And of course, xsl:function is really beneficial, as also stated by
others in this thread.

--
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>