You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/15 22:38:12 UTC
DO NOT REPLY [Bug 4901] New: -
xsltc ignores specified tring for infinity in xsl:decimal-format
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4901>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4901
xsltc ignores specified tring for infinity in xsl:decimal-format
Summary: xsltc ignores specified tring for infinity in
xsl:decimal-format
Product: XalanJ2
Version: CurrentCVS
Platform: All
OS/Version: All
Status: NEW
Severity: Minor
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: tom.amiro@sun.com
conf test numberformat14 tests the attribute to the decimal-format instruction
that lets us specify a string to use for the numeric value infinity; otherwise,
default is "Infinity".
<xsl:decimal-format infinity="off-the-scale" />
xsltc should output "off-the-scale" when it encounters
<xsl:value-of select="format-number(1 div
0,'###############################')"/>
but outputs "Infinity" instead.
Here's a comparison of Xalan and XSLTC on this test
Running xalan on numberformat14
<?xml version="1.0" encoding="UTF-8"?>
<out>off-the-scale</out>
Running XSLTC with Xerces Parser on numberformat14
<?xml version="1.0" encoding="UTF-8" ?>
<out>Infinity</out>