[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xsl:function vs named templates (Which is better?)


Subject: Re: [xsl] xsl:function vs named templates (Which is better?)
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Thu, 15 Mar 2007 07:24:29 +0000

From: Abel Braaksma <abel.online@xxxxxxxxx>

Jernigan, TieSha wrote:
So I have a fairly general question. I am using XSLT 2.0 and am
interested in creating user defined functions. Which construct is better
to use... xsl:function or a named template?

Indeed fairly general, but not easy to answer.

My preference here is to ask the question - Does the proposed "function" have side effects?


If yes, use xsl:call-template, if not use xsl:function.

_________________________________________________________________
Txt a lot? Get Messenger FREE on your mobile. https://livemessenger.mobile.uk.msn.com/



Current Thread
Keywords