Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.0
-
None
Description
In the derivation of xs:integer from xs:decimal the fractionDigits facet is fixed to 0. Xerces currently allows types dervied from xs:integer to specify a fractionDigits facet with a value other than zero, for instance:
<xs:simpleType name="myInteger">
<xs:restriction base="xs:integer">
<xs:fractionDigits value="20">
<xs:annotation>
<xs:documentation>invalid</xs:documentation>
</xs:annotation>
</xs:fractionDigits>
</xs:restriction>
</xs:simpleType>
This bug is causing several tests in the W3C XML Schema 1.0 2nd Edition test suite to fail:
msData/datatypes/Facets/Schemas/integer_fractionDigits004.xsd
msData/datatypes/Facets/Schemas/integer_fractionDigits007.xsd
msData/datatypes/Facets/Schemas/nonPositiveInteger_fractionDigits004.xsd
msData/datatypes/Facets/Schemas/nonPositiveInteger_fractionDigits007.xsd
msData/datatypes/Facets/Schemas/negativeInteger_fractionDigits004.xsd
msData/datatypes/Facets/Schemas/negativeInteger_fractionDigits007.xsd
...and so on for each built-in type derived from xs:integer...