[ http://issues.apache.org/jira/browse/XALANJ-1836?page=all ]

Brian Minchau updated XALANJ-1836:
----------------------------------

    Fix Version: 2.7

> Fails OASIS test case numberformat45 by throwing a RuntimeException
> -------------------------------------------------------------------
>
>          Key: XALANJ-1836
>          URL: http://issues.apache.org/jira/browse/XALANJ-1836
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-CmdLine
>     Versions: CurrentCVS
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: elharo
>     Assignee: Xalan Developers Mailing List
>      Fix For: 2.7
>  Attachments: numberformat45.xml, numberformat45.xsl
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to