[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Closed: (XMLBEANS-208) validation of decimal with fractionDigits -- special case, additional
From:       "Rajiv Bala (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2005-10-27 18:49:01
Message-ID: 774315119.1130438941454.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

     [ http://issues.apache.org/jira/browse/XMLBEANS-208?page=all ]
     
Rajiv Bala closed XMLBEANS-208:
-------------------------------

    Resolution: Fixed

Verified and added tests cases (rev 328804)

> validation of decimal with fractionDigits -- special case, additional zero digits
> ---------------------------------------------------------------------------------
> 
> Key: XMLBEANS-208
> URL: http://issues.apache.org/jira/browse/XMLBEANS-208
> Project: XMLBeans
> Type: Bug
> Components: Validator
> Versions: Version 2
> Environment: Windows 2000 JDK 1.4 or JDK 1.5
> Reporter: Patrick Podenski
> Assignee: Rajiv Bala
> Priority: Minor
> Attachments: simple_decimal.xsd, simple_decimal_1.xml, simple_decimal_2.xml
> 
> I am encountering what I believe to be a bug in XML Beans 2 validation and would \
> like some input on the expected validation behavior for the two test cases \
> enclosed. The validation problem is related to a decimal with fractionDigits \
> specified.  I have included all of the relevant information below. For both XML \
> instance documents, the XML Beans InstanceValidator produces a validation error. \
> For the first case (1000.000001) I DO expect a validation error, however for the \
> second (1000.000000) I DO NOT expect a validation error. This is because the W3C \
> valiation rule states that additional trailing fractional zero digits are \
> permitted. If I validate using the oXygen 6.1 XML editor, (1000.000001) will \
> produce a validation error as expected, and (1000.000000) validates successfully as \
>                 expected.
> -- Validation error for (1000.000001) using oXygen XML editor:
> SystemID: C:\aaa_workspace\XMLBeans_Sandbox\test\simple_decimal_1.xml
> Location: 1:31
> Description: E cvc-fractionDigits-valid: Value '1000.000001' has 6 fraction digits, \
>                 but the number of fraction digits has been limited to 3.
> URL: http://www.w3.org/TR/xmlschema-2/#cvc-fractionDigits-valid
> -- From W3C [ http://www.w3.org/TR/xmlschema-2/#rf-fractionDigits ]:
> "The term fractionDigits is chosen to reflect the fact that it restricts the value \
> space to those values that can be represented lexically using at most \
> fractionDigits to the right of the decimal point. Note that it does not restrict \
> the lexical space directly; a non-canonical lexical representation that adds \
> additional leading zero digits or trailing fractional zero digits is still \
>                 permitted."
> --  XML Beans InstanceValidator error message (same error for either test case):
> test\simple_decimal_1.xml NOT valid.
> C:\aaa_workspace\XMLBeans_Sandbox\test\simple_decimal_1.xml:2: error: \
> cvc-fractionDigits-valid: Decimal fractional digits (6) of value '1,000' does not \
> match fractionDigits facet (3) for dec15d3

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic