You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Gangadhar Bathula <gb...@akamai.com> on 2001/10/18 21:49:16 UTC
Problem with format-number in the latest Xalan C++
Hi ,
In the following example, format-number is not behaving as expected . I
am using the latest Xalan C++ and ICU. Do you know any known problems
in formatting numbers in the latest version of Xalan C++ with the latest
version of ICU ?
XML file :
--------
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="numberformat09.xsl"?>
<doc>
</doc>
XSL file :
-------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT09 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test default decimal-format on separator characters,
changing both. -->
<xsl:decimal-format decimal-separator="|" grouping-separator="." />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(931.4857,'000.000|###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
Out put :
------
<?xml version="1.0" encoding="UTF-8"?>
<out>931|486|###</out>
THANKS
gb