Re: [xsl] format-number()-function question

Subject: Re: [xsl] format-number()-function question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 18 Dec 2003 21:52:10 GMT
> "format-number($number, 
you don't need a variable there, you can just do

Also, when yiu _do_ need a variable don't do

<xsl:variable name="number"><xsl:value-of select="."/></xsl:variable>


<xsl:variable name="number" select="."/>

not only is it a lot less typing it's usually a lot more efficient, the
former makes a result tree fragment with a root node and a child text
node with string value the string value of the current node, the latter
makes the variable bound to the current node.



 XSL-List info and archive:

Current Thread