I have the following data:
<Amt type="decimal">-1245.25</Amt>
And I would like it to display as follows:
-1 245,25 $
I have created the following template:
<xsl:decimal-format name="FrenchDecimalFormat" decimal-separator=","
grouping-separator=" "/>
<xsl:template name="FrenchCurrency">
<xsl:value-of select="format-number(., '## ##0,00 $',
'FrenchDecimalFormat')"/>
</xsl:template>
And this is how I call it:
<xsl:for-each select="Amt[not(. = '')]">
<xsl:call-template name="FrenchCurrency"/>
</xsl:for-each>
This used to work in MSXSL. However, now that I have migrated the stylesheet
to XALAN, the template no longer seems to work.
Maria
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--