xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher R. Maden" <cr...@maden.org>
Subject Re: display numbers
Date Wed, 06 Mar 2002 09:36:47 GMT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 00:12 6-03-2002, ludovic.maurillon@saros.fr wrote:
>I have to display numbers in a PDF document, but it's frequently thousands or
>millions, so I would like to render it like this:
>1 000 000 or 1'000'000
>instead of 1000000
>is it possible or may I write a fonction that convert it in a string before
>rendering it??

FOP doesn't deal with numbers at all, only characters.  If you pass it "1 
000 000" it will format "1 000 000".  [There are a few exceptions, as for 
page numbers.]

If you are using XSLT to create your FOs which are passed to FOP, then look 
at the xsl:number element and its attributes.

~Chris
- -- 
Christopher R. Maden, Principal Consultant, crism consulting
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBPIXjL6xS+CWv7FjaEQLk4gCfTcdAOxOEv4QMIr8FtfaudRqTo/oAoKF7
wIaCQTyy5Lj58+SSKfd3i7n7
=wYGW
-----END PGP SIGNATURE-----


Mime
View raw message