W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2008

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

From: jlr <jean.stachler@crown.com>
Date: Fri, 23 May 2008 10:33:47 -0700 (PDT)
Message-ID: <17430133.post@talk.nabble.com>
To: www-xsl-fo@w3.org


First off, thank you for your reply, I have it working.
On to the second question....is there a way of displaying the zero 
amounts in a value such as 45.00?  
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')"/>        

Thanks in advance for anyone's comments, it is much appreciated.

jlr    

Tony Graham-3 wrote:
> 
> 
> On Fri, May 23 2008 14:44:37 +0100, jean.stachler@crown.com wrote:
>> How can I include the currency format in a pdf document?
>> I have the FinalTotal value displayed in the table, but I would
>> like to have the value formatted in the manner of $XXX,XXX.XX
>> instead of the plain number value.
> 
> You have used format-number() in examples in other posts.  Why not use
> it here, too?
> 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Currency-format-in-a-PDF-tp17425898p17430133.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Friday, 23 May 2008 17:34:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 23 May 2008 17:34:28 GMT