This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

adding 2 formatted 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]