Try the following (untested):

<!-The following is a top-level element (i.e., outside of template rules) -->
<xsl:decimal-format name="aut" decimal-separator="," grouping-separator="." />

Then in the template rule, use
<xsl:value-of select="format-number(10000, '####,###.00', 'aut')" />

Instead.

Eric Amick   Systems Engineer II
Legislative Computer Systems

From: [email protected] [mailto:[email protected]]
Sent: Tuesday, July 12, 2011 10:21
To: [email protected]
Subject: numberformatting problem (austrian format)

I'm using fop to process PDFs. I need to format a number.
code:
<xsl:value-of select="format-number(10000, '####,###.00')" />

The output in this case is 10,000.00
My problem is, that I need the number format in Austria, which is 10.000,00 
(the comma and the point are switched)

I already tried ####.###,00 but a TransformerException was thrown. Seems that 
the point is only used to separate integer and decimal places and the comma is 
only used to group numerals.

Anyone knows how I can get the number formatted with the Austrian/German format?

-------------------------------------------------

Zuverlässigkeit seit 50 Jahren - Raiffeisen Bausparkasse feiert Jubiläum.

Auf zum Bauspar-Jubiläumsgewinnspiel:

[cid:[email protected]]<https://www.bausparen.at/eBusiness/rai_template1/314933534010554625-NA-745225230582111526-NA-19-NA.html>

______________________________________
Raiffeisen Bausparkasse Gesellschaft m.b.H., 1050 Wien, Wiedner Hauptstraße 94, 
Firmenbuchnummer 116309v, Handelsgericht Wien, DVR 0066257, UID ATU15350206

Diese E-Mail kann vertrauliche und geschuetzte Informationen enthalten. Wenn 
diese E-Mail nicht für Sie bestimmt ist, bitten wir Sie, uns unverzueglich zu 
informieren und sie zu loeschen.

This e-mail message may contain information, which is confidential and 
protected. If you are not the intended recipient of this message, we ask you to 
inform us immediately and delete the message afterwards.

<<inline: image001.jpg>>

Reply via email to