- From: Mukul Gandhi <gandhi.mukul@gmail.com>
- Date: Sat, 24 Feb 2018 12:38:45 +0530
- To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
- Message-ID: <CABuuzNO_JK8gWvMot8ccYRa12Qjbvi=O0mS+co0i7m6MiN0Ngw@mail.gmail.com>
Hi all, I'm testing an assertion in XSD 1.1 validation as following, <xs:assertion test="(1,2,3) instance of xs:anyAtomicType*"/> (this doesn't depend on any information, from an input XML document) Xerces XSD 1.1 engine reports an error message with following contents, "XPST0051 - Type not defined: xs:anyAtomicType" But Saxon-EE embedded within oXygen XML 19.1 reports the validation as succeeded. When I run the following assertion, <xs:assertion test="(1,2,3) instance of xs:integer*"/> Both Xerces XSD 1.1 engine & Saxon do not report any validation failure. The XPath 2.0 specification (https://www.w3.org/TR/xpath20), in section "2.5 Types" says, <quote> [Definition: A schema type is a type that is (or could be) defined using the facilities of [XML Schema] (including the built-in types of [XML Schema]).] A schema type can be used as a type annotation on an element or attribute node (unless it is a non-instantiable type such as xs:NOTATION or xs:anyAtomicType, in which case its derived types can be so used). </quote> This reference from XPath 2.0 specification, makes me conclude that Xerces XSD 1.1 engine is right & Saxon is wrong for the example posted. Am I correct in my analysis? -- Regards, Mukul Gandhi
Received on Saturday, 24 February 2018 07:09:31 UTC