Ferran,

one elegant way could be:

1) Define your format for numbers

 <xsl:decimal-format
  name="italy"
  decimal-separator=","
  grouping-separator="."
  NaN="vuoto"
 />

1) Apply it to the outputted numbers

<xsl:value-of select="format-number(sql:pay, '###.###.##0,000', 'italy')"/>

Of course, I used this for the opposite reason (outputting commas instead of
points)... but you got the idea :)


Best regards,

P.S.
Next time use plain text, please.

---------------------------------------------
               Luca Morandini
               GIS Consultant
              [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------

-----Original Message-----
From: Ferran Urgell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: Transformation comma-point


Hi Cocooners!

I've a problem:
I'm getting xml from a database, but I'm getting some results (number
results with decimals), but these results are in commas (ex. 123,34).

Now I'm trying to make some transformation into svg, but don't accept the
commas....
I need to change this commas to points...

The question is: How I can do this ?

Thanks

Ferran Urgell


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to