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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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>

Reply via email to