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

adding 2 formatted numbers?

Subject: adding 2 formatted numbers?
From: "L Rutker" <lrutker@xxxxxxxxxxx>
Date: Thu, 14 Mar 2002 14:54:50 -0500
adding 2 numbers
Hi,
I have the following nodes in my xml:
<node1>123,456,789.01</node1>
<node2>222,222,222.54</node2>

In my xsl I have to add the value of the 2 of them. Since my numbers are formatted I cant do it.
How can I "unformat" my numbers and add them together?


Note: depending on the users currency formatting preferences I might get the number in the following format:
<node1>123.456.789,01</node1>
<node2>222.222.222,54</node2>
I also have now way of knowing how many commas there are per node (the length varies)


Thanks
Lou

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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.