Subject: xsl:function vs named templates (Which is better?)
From: "Jernigan, TieSha" <jernigant@xxxxxxxxxxxxxxx>
Date: Wed, 14 Mar 2007 16:03:03 -0400
|
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?
An example of what I am trying to do with the user defined function is
below.
So for example if I have
<greater>freq</greater>
<lesser>freq</lesser>
I want to replace it with .....
<greater>upperfreq</greater>
<lesser>lowerfreq</lesser>
Thanks
TieSha
|