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

Re: sum() with decimal-separator ","

Subject: Re: sum() with decimal-separator ","
From: "M. David Peterson" <conners_dad@xxxxxxx>
Date: Tue, 9 Sep 2003 02:30:36 -0600
xml decimal separator
try  select="sum(translate(row/BUCHWERTBW, ',', '.'))


----- Original Message ----- 
From: <m.friedrich@xxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, September 09, 2003 2:17 AM
Subject:  sum() with decimal-separator ","


> I try to calculate a summary by using
>    select="sum(row/BUCHWERTBW)"
> 
> with a given decimal format like this:
> <row>
> <BUCHWERTBW>43023.7</BUCHWERTBW>
> </row>
> it works well.
> 
> 
> The problem is that I have to use a decimal format with
> decimal-separator=",":
> <row>
> <BUCHWERTBW>43023,7</BUCHWERTBW>
> </row>
> 
> so the result is NaN. How can I use the function sum() with an
> decimal-separator like "," ?
> 
> regards Manfred
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

 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.