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

Johannes Stamminger updated XMLBEANS-175:
-----------------------------------------

    Description: 
Having an attribute of type xsd:decimal. Validating a document having set the 
attribute to "4.2E1" fails with error message "unexpected char '69'" (char '69' 
is the E). Value "42" works fine.

Other XML parsers validate "4.2E1" successfully.

Parsing fails in 
org.apache.xmlbeans.impl.values.JavaDecimalHolder#validateLexical(String, 
ValidationContext).

BTW: according to my XML documentation, type xsd:decimal is "same as 
java.math.BigDecimal".
If this info is correct: IMHO it would be better to rely the BigDecimal-parsing 
capability ... ?

  was:
Having an attribute of type xsd:decimal. Validating a document having set the 
attribute to "4.2E1" fails with error message "unexpected char '69'" (char '69' 
is the E). Value "42" works fine.

Other XML parsers validate "4.2E1" successfully.

BTW: according to my XML documentation, type xsd:decimal is "same as 
java.math.BigDecimal".
If this info is correct: IMHO it would be better to rely the BigDecimal-parsing 
capability ... ?


> Validation of decimal in exponential representation fails
> ---------------------------------------------------------
>
>          Key: XMLBEANS-175
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-175
>      Project: XMLBeans
>         Type: Bug
>   Components: Validator
>     Versions: Version 2
>     Reporter: Johannes Stamminger

>
> Having an attribute of type xsd:decimal. Validating a document having set the 
> attribute to "4.2E1" fails with error message "unexpected char '69'" (char 
> '69' is the E). Value "42" works fine.
> Other XML parsers validate "4.2E1" successfully.
> Parsing fails in 
> org.apache.xmlbeans.impl.values.JavaDecimalHolder#validateLexical(String, 
> ValidationContext).
> BTW: according to my XML documentation, type xsd:decimal is "same as 
> java.math.BigDecimal".
> If this info is correct: IMHO it would be better to rely the 
> BigDecimal-parsing capability ... ?

-- 
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