Appendix A.4 Differences in Behaviors of Schema Validation Between Versions

The following table lists and describes the differences in behaviors of schema validation between versions.

Table A-4 Differences in behaviors of schema validation between versions

No.ConditionCosminexus XML Processor operations
In version 06-00In version 07-00 and later versions
1If xsd:key element exists in a schema document and the text corresponding to the key does not exist in the instance documentAn error might not occur.An error occurs.
2If you specify a combination of an xsd:key element and an xsd:keyref element for a schema document, and the order and type of the field elements of both xsd:key element and the xsd:keyref element do not matchAn error might not occur.An error occurs.
3If the xpath attribute for the xsd:field element is an XPath expression that includes the child axisAn error does not occur.An error indicating that the child axis cannot be specified occurs.
4If an xpath attribute for an xsd:selector element is an XPath expression that includes an incorrect | operator such as | ns1:elementAn error does not occur or an error associated with the validation for an XML document occurs.An error associated with a schema document occurs.
5If you specify an empty string for the schemaLocation attribute of the xsd:redefine or xsd:import elementAn error does not occur.An error occurs.
6If http://www.w3.org/2001/XMLSchema-instance is specified in the targetNamespace attribute of an xsd:schema element-- (Not applicable)
  • In 08-00, the error KECX06509-E will be reported.
  • In 08-50 or later versions, error will not be reported. However, if an extended attribute exists, the error KECX06198-E will be reported.
7When all the following conditions are satisfied:
  1. The anyURI type or its derived types are used in the XML schema document
  2. Data corresponding to the definition in 1. includes characters violating the provisions in RFC2396 and RFC2732
The KECX06036-E error is reported.Processed as a value suitable for the data type declaration.
8When all the following conditions are satisfied:
  1. The time or dateTime types are used in the XML schema document
  2. 60 is specified as the seconds value in data corresponding to the definition in 1.
Processed as a value suitable for the data type declaration.The value is considered to be outside the scope of the data type declaration, and the KECX06036-E error is reported.
9When all the following conditions are satisfied:
  1. The time or dateTime types are used in the XML schema document
  2. A value in the range from -14:01 to -14:59 or from +14:01 to +14:59 is specified as the time zone offset in data corresponding to the definition in 1.
Processed as a value suitable for the data type declaration.The value is considered to be outside the scope of the data type declaration, and the KECX06036-E error is reported.
10When minLength or maxLength is specified in the derivation by the restriction based on a simple type in which the length facet is specifiedAn error occurs.An error does not occur.
11When all of the following conditions are satisfied:
  1. An error handler is set during validation parsing
  2. During validation parsing, the error or fatalError method of the error handler described in step 1 above is invoked
  3. An exception is not thrown in the method described in step 2 above
The validation errors reported in version 06-00 and version 07-00 or later versions might be different.
12When both the following conditions are satisfied:
  1. The type of element specified in the selector of the xsd:unique element is xsd:anyType
  2. The type of element described in step 1 above is changed to a simple type using the xsi:type global attribute in the instance document
An error occurs.An error does not occur.
13When a blank exists in the instance data of the xsd:anyURI typeAn error occurs.An error does not occur.
14When the final attribute of the xsd:simpleType element is only a null character string or a blankAn error occurs.An error does not occur.
15When the public attribute of the xsd:notation element does not existThe KECX06230-E error is reported.The KECX06256-E error is reported.
16When [- and -] are specified in the regular expression of the value attribute of the xsd:pattern elementAn error occurs.An error does not occur.
17When all of the following conditions are satisfied:
  1. Uniqueness is specified for the elements with xsd:unique
  2. The type of element described in step 1 above is not a simple type
  3. The type of element described in step 1 above is replaced by a simple type in the xsi:type global attribute in the instance document
  4. Validation parsing is performed
An error occurs.An error does not occur.
18When an inappropriate xpath attribute is specified in the xsd:selector elementThe KECX06243-E error is reported.The KECX06241-E error is reported.
19When a path format called element-name/ is specified in the xpath attribute of the field (xsd:field element) of the xsd:key elementAn error occurs.An error does not occur.
20When multiple elements with different types are specified in the selector (xsd:selector element) of the xsd:key element, and the same value is applied to the key element in the instance documentAn error occurs.An error does not occur.
21When a long URI character string (63 bytes or more) is specified for an element of the xsd:anyURI typeAn error occurs.An error does not occur.
22When a list demarcated by blanks, such as list restriction union is specified in the final attribute of the xsd:simpleType elementAn error occurs.An error does not occur.
23When a URI including double-byte characters is inserted in an element for which derivation by the restriction is performed based on xsd:anyURIAn error occurs.An error does not occur.
24When the value of seconds is given in 10 or more digits after the decimal point in the element for which derivation by the restriction is performed with xsd:time as the base type (example: 13:20:15.2147483648​)An error occurs.An error does not occur.
25When xsd:length is fixed at 2 or more in the derivation by the restriction performed with xsd:IDREF as the baseAn error occurs.An error does not occur.
26When validation parsing is performed for an XML document that satisfies the following condition:
  • A schema document that either does not exist or cannot be read in the xsi:schemaLocation attribute or the xsi:noNamespaceSchemaLocation attribute of the input XML document is specified
A warning does not occur.The KECX06069-E warning is reported.
27When validation parsing of an XML document is performed by using a schema document that satisfies the following conditions:
  • A schema document that either does not exist or cannot be read in the schemaLocation attribute of xs:import and xs:include is specified
  • The xs:redefine element satisfies either of the following points (i) or (ii), and a schema document that either does not exist or cannot be read in the schemaLocation attribute is specified
    (i) The child element of the xs:redefine element is only the xs:annotation element
    (ii) A child element does not exist in the xs:redefine element
An error does not occur.The KECX06069-E warning is reported.
28When a URI with an invalid syntax is specified in either of the following locations:
  • xsi:schemaLocation attribute or xsi:noNamespaceSchemaLocation attribute of the instance document
  • schemaLocation attribute of the include element, import element, or redefine element
The operation is different in 06-00 and 07-00 or later versions depending on the combination of the URI specification location and the URI with an invalid syntax. For example, the error to be reported might be different, or an exception that did not occur in version 06-00 might occur in version 07-00 or later.
29When a URI with an invalid syntax is specified in one of the following locations:
  • namespace attribute of the anyAttribute element
  • namespace attribute of the any element
  • system attribute of the notation element
  • source attribute of the appinfo element
  • source attribute of the documentation element
  • namespace attribute of the import element
The KECX06229-E error is reported.An error does not occur.
30When a URI with an invalid syntax is specified in either of the following locations:
  • targetNamespace of the schema element
  • schemaLocation attribute of the redefine element
The KECX06229-E error is reported.The KECX06039-E or the KECX06069-E error is reported.
Note:
For details on the messages, see 11. KECX (Messages Output by Cosminexus XML Processor) in the manual uCosminexus Application Server Messages.