- From: Roger <rxt360@gmail.com>
- Date: Fri, 23 May 2008 15:55:21 +0200
- To: www-xsl-fo@w3.org
This is handled in XSLT, not XSLFO. See http://www.w3schools.com/xsl/el_decimal-format.asp <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/> <xsl:template match="/"> <xsl:value-of select="format-number(26825.8, '#.###,00', 'euro')"/> </xsl:template> </xsl:stylesheet> Output: 26.825,80 Cheers! Roger jlr schreef: > 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. > Your comments are much appreciated. > CODE BELOW: > > <fo:table-body> > <fo:table-row border-after-style="double" > > <fo:table-cell xsl:use-attribute-sets="cell-padding" > border="solid black 0.5px" > > <fo:block xsl:use-attribute-sets="detailtableright"> > <xsl:value-of select="header/FinalTotal"/> > </fo:block> > </fo:table-cell> > </fo:table-row> > </fo:table-body> > > Thank you, > jlr >
Received on Friday, 23 May 2008 13:56:44 UTC