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

format number with changeable currency symbol

Subject: format number with changeable currency symbol
From: "James Steven" <JSteven@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jun 2004 09:32:33 +0100
currency format
Hello
I would like to format a number so that it can be shown with any type of
currency symbol in front of it.  Currently I am using eg. <xsl:value-of
select="format-number(12345, '?###,###,##0.00')"/> but this only formats the
number with a ?.

Also I have tried putting a currency symbol element in the xml and including
that in the xsl to be inserted before the number.  The trouble with this
method is that if the figure is a negative number the minus sign is inserted
after the currency symbol which is no good.  Is there a way that the
format-number function can be used with a currency symbol element from the
xml so that the currency symbol can be changed in the xml?  Or is there any
other way to solve this?

Thanks for your help.
James





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.