Re: Currency format in a PDF - another question concerning cents portion

On Fri, May 23 2008 18:33:47 +0100, jean.stachler@crown.com wrote:
...
> In the XML file, I see that the value of 45.00, but when it displays it
> displays like this 45    .  I would like to display the full value of 45.00.
>
> This is the code that I have:
>   <xsl:value-of select="format-number(FinalTotal, '###,###,###.##',
> 'usdollar')"/>        

'###,###,###.00'

or

'###,###,##0.00' (if you want zero to be '0.00')

or

'$###,###,##0.00' (if you want zero to be '$0.00')

Regards,


Tony Graham                         Tony.Graham@MenteithConsulting.com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

Received on Friday, 23 May 2008 20:04:09 UTC