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. | Condition | Cosminexus XML Processor operations | |
---|---|---|---|
In version 06-00 | In version 07-00 and later versions | ||
1 | If xsd:key element exists in a schema document and the text corresponding to the key does not exist in the instance document | An error might not occur. | An error occurs. |
2 | If 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 match | An error might not occur. | An error occurs. |
3 | If the xpath attribute for the xsd:field element is an XPath expression that includes the child axis | An error does not occur. | An error indicating that the child axis cannot be specified occurs. |
4 | If an xpath attribute for an xsd:selector element is an XPath expression that includes an incorrect | operator such as | ns1:element | An error does not occur or an error associated with the validation for an XML document occurs. | An error associated with a schema document occurs. |
5 | If you specify an empty string for the schemaLocation attribute of the xsd:redefine or xsd:import element | An error does not occur. | An error occurs. |
6 | If http://www.w3.org/2001/XMLSchema-instance is specified in the targetNamespace attribute of an xsd:schema element | -- (Not applicable) |
|
7 | When all the following conditions are satisfied:
| The KECX06036-E error is reported. | Processed as a value suitable for the data type declaration. |
8 | When all the following conditions are satisfied:
| 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. |
9 | When all the following conditions are satisfied:
| 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. |
10 | When minLength or maxLength is specified in the derivation by the restriction based on a simple type in which the length facet is specified | An error occurs. | An error does not occur. |
11 | When all of the following conditions are satisfied:
| The validation errors reported in version 06-00 and version 07-00 or later versions might be different. | |
12 | When both the following conditions are satisfied:
| An error occurs. | An error does not occur. |
13 | When a blank exists in the instance data of the xsd:anyURI type | An error occurs. | An error does not occur. |
14 | When the final attribute of the xsd:simpleType element is only a null character string or a blank | An error occurs. | An error does not occur. |
15 | When the public attribute of the xsd:notation element does not exist | The KECX06230-E error is reported. | The KECX06256-E error is reported. |
16 | When [- and -] are specified in the regular expression of the value attribute of the xsd:pattern element | An error occurs. | An error does not occur. |
17 | When all of the following conditions are satisfied:
| An error occurs. | An error does not occur. |
18 | When an inappropriate xpath attribute is specified in the xsd:selector element | The KECX06243-E error is reported. | The KECX06241-E error is reported. |
19 | When a path format called element-name/ is specified in the xpath attribute of the field (xsd:field element) of the xsd:key element | An error occurs. | An error does not occur. |
20 | When 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 document | An error occurs. | An error does not occur. |
21 | When a long URI character string (63 bytes or more) is specified for an element of the xsd:anyURI type | An error occurs. | An error does not occur. |
22 | When a list demarcated by blanks, such as list restriction union is specified in the final attribute of the xsd:simpleType element | An error occurs. | An error does not occur. |
23 | When a URI including double-byte characters is inserted in an element for which derivation by the restriction is performed based on xsd:anyURI | An error occurs. | An error does not occur. |
24 | When 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. |
25 | When xsd:length is fixed at 2 or more in the derivation by the restriction performed with xsd:IDREF as the base | An error occurs. | An error does not occur. |
26 | When validation parsing is performed for an XML document that satisfies the following condition:
| A warning does not occur. | The KECX06069-E warning is reported. |
27 | When validation parsing of an XML document is performed by using a schema document that satisfies the following conditions:
| An error does not occur. | The KECX06069-E warning is reported. |
28 | When a URI with an invalid syntax is specified in either of the following locations:
| 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. | |
29 | When a URI with an invalid syntax is specified in one of the following locations:
| The KECX06229-E error is reported. | An error does not occur. |
30 | When a URI with an invalid syntax is specified in either of the following locations:
| The KECX06229-E error is reported. | The KECX06039-E or the KECX06069-E error is reported. |