[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: format-number()-function question

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

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

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

do

<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.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.