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
string_datatype_facet.xsd string_datatype_facet.xml
Error:
Line number: 21
Column number: 6
Message: cvc-minLength-valid: Value '7 M.' with length = '4' is not
facet-valid with respect to minLength '5' for type
'#AnonType_streetcanadaAddressString_Datatype_Facet'.
Error:
Line number: 21
Column number: 6
Message: cvc-attribute.3: The value '7 M.' of attribute 'street'
on element 'canadaAddress' is not valid with respect to its type,
'null'.
Error:
Line number: 21
Column number: 6
Message: cvc-length-valid: Value 'Ontario' with length = '7' is not
facet-valid with respect to length '2' for type
'#AnonType_provinceCodecanadaAddressString_Datatype_Facet'.
Error:
Line number: 21
Column number: 6
Message: cvc-attribute.3: The value 'Ontario' of attribute
'provinceCode' on element 'canadaAddress' is not valid with respect
to its type, 'null'.
Error:
Line number: 21
Column number: 6
Message: cvc-pattern-valid: Value 'M3C LT3' is not facet-valid with
respect to pattern '[A-Z][0-9][A-Z] [0-9][A-Z][0-9]' for type
'#AnonType_zipcanadaAddressString_Datatype_Facet'.
Error:
Line number: 21
Column number: 6
Message: cvc-attribute.3: The value 'M3C LT3' of attribute 'zip' on
element 'canadaAddress' is not valid with respect to its type,
'null'.
Failed with errors: 6