DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27938>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27938

Fails OASIS test case numberformat45 by throwing a RuntimeException

           Summary: Fails OASIS test case numberformat45 by throwing a
                    RuntimeException
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan-CmdLine
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Xalan complains about the format pattern in OASIS test case numberformat45. I'm
not sure whether Xalan is right to complain or not, but I suspect the
RuntimeExcepiton it throws is incorrect. It should be a TransformException, if
if throws an excepiton at all. libxslt can handle this case. I'm using Java 1.4.
Possibly the verison of the DecimalFormat class in use matters.

[EMAIL PROTECTED] numberformat]$ java -classpath
/opt/xml/xalan-j_2_6_0/bin/xalansamples.jar:/opt/xml/xalan-j_2_6_0/bin/xercesImpl.jar:/opt/xml/xalan-j_2_6_0/bin/xalan.jar
org.apache.xalan.xslt.Process -IN numberformat45.xml -XSL numberformat45.xsl
<?xml version="1.0" encoding="UTF-8"?>
<out>

file:///home/elharo/XOM/data/oasis_xslt_testsuite/TESTS/Xalan_Conformance_Tests/numberformat/numberformat45.xsl;
Line #17; Column #69; XSLT Error (javax.xml.transform.TransformerException):
java.lang.RuntimeException: ElemTemplateElement error: Malformed format string:
000.000,###
[EMAIL PROTECTED] numberformat]$ xsltproc numberformat45.xsl numberformat45.xml
<?xml version="1.0"?>
<out>
<one>12345.670, -98765.432100</one>
<sub>12345.670, -98765.432100</sub></out>

Reply via email to