xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amick, Eric" <Eric.Am...@mail.house.gov>
Subject RE: numberformatting problem (austrian format)
Date Tue, 12 Jul 2011 14:50:23 GMT
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')" />


Eric Amick   Systems Engineer II
Legislative Computer Systems

From: haichao.miao@raibau.at [mailto:haichao.miao@raibau.at]
Sent: Tuesday, July 12, 2011 10:21
To: fop-users@xmlgraphics.apache.org
Subject: numberformatting problem (austrian format)

I'm using fop to process PDFs. I need to format a number.
<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:


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.

View raw message