cocoon-users mailing list archives

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
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
-----Original Message-----
From: Ferran Urgell [mailto:ferran_urgell@hotmail.com]
Sent: Tuesday, April 02, 2002 11:18 AM
To: cocoon-users@xml.apache.org
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>