When validating this XML document with my XsdSchemaValidator.java program presented earlier in the book,
I get these errors:
c:\Progra~1\Java\jdk1.7.0_07\bin\java XsdSchemaValidator
decimal_datatype_facet.xsd decimal_datatype_facet.xml
Error:
Line number: 19
Column number: 6
Message: cvc-maxInclusive-valid: Value '1003' is not facet-valid
with respect to maxInclusive '1000' for type
'#AnonType_quantityorderLineDecimal_Datatype_Facet'.
Error:
Line number: 19
Column number: 6
Message: cvc-attribute.3: The value '1003' of attribute 'quantity'
on element 'orderLine' is not valid with respect to its type,
'null'.
Error:
Line number: 19
Column number: 6
Message: cvc-fractionDigits-valid: Value '19.9999' has 4 fraction
digits, but the number of fraction digits has been limited to 2.
Error:
Line number: 19
Column number: 6
Message: cvc-attribute.3: The value '19.9999' of attribute 'price'
on element 'orderLine' is not valid with respect to its type,
'null'.
Error:
Line number: 19
Column number: 6
Message: cvc-minInclusive-valid: Value '9.99' is not facet-valid
with respect to minInclusive '10.01' for type
'#AnonType_subTotalorderLineDecimal_Datatype_Facet'.
Error:
Line number: 19
Column number: 6
Message: cvc-attribute.3: The value '9.99' of attribute 'subTotal'
on element 'orderLine' is not valid with respect to its type,
'null'.
Failed with errors: 6