This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
notationschema is not a valid schema. The enumeration values should be namespace-qualified. For example XSV says: XSV 2.10-1 of 2005/04/22 13:10:49 file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:4,7: element content failed type check: myns:jpeg not in enumeration [jpeg, png] file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:5,7: element content failed type check: foo:jpeg not in enumeration [jpeg, png] file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:6,7: element content failed type check: myns:jpeg not in enumeration [jpeg, png] file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:7,7: element content failed type check: myns:png not in enumeration [jpeg, png] while Xerces reports: file:///c:/MyJava/tests/xqts070/TestSources/notationschema.xsd:20,42: (Error) src-resolve.4.1: Components with no namespace are not referenceable from schema document 'file:///c:/MyJava/tests/xqts070/TestSources/notationschema.xsd'. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:4,39: (Error) cvc-enumeration-valid: Value 'myns:jpeg' is not facet-valid with respect to enumeration '[jpeg, png]'. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:4,39: (Error) cvc-type.3.1.3: The value 'myns:jpeg' of element 'NOTATION1' is not valid. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:5,38: (Error) cvc-enumeration-valid: Value 'foo:jpeg' is not facet-valid with respect to enumeration '[jpeg, png]'. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:5,38: (Error) cvc-type.3.1.3: The value 'foo:jpeg' of element 'NOTATION2' is not valid. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:6,39: (Error) cvc-enumeration-valid: Value 'myns:jpeg' is not facet-valid with respect to enumeration '[jpeg, png]'. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:6,39: (Error) cvc-type.3.1.3: The value 'myns:jpeg' of element 'NOTATION3' is not valid. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:7,38: (Error) cvc-enumeration-valid: Value 'myns:png' is not facet-valid with respect to enumeration '[jpeg, png]'. file:///c:/MyJava/tests/xqts070/TestSources/notation.xml:7,38: (Error) cvc-type.3.1.3: The value 'myns:png' of element 'NOTATION4' is not valid. Xerces Java 2 Validation Complete. Michael Kay
Tests Constr-inscope-1 to -4 cause the system to generate arbitrary namespace prefixes. The rules for the XML comparator result in a "fail" result if the namespace prefixes generated are different from those in the expected results. A possible solution here is to put the query results through a further transformation whose result doesn't depend on the actual prefixes. For example, it could do count(distinct-values(in-scope-prefixes())). Michael Kay
I updated to notationschema, enumeration values are namespace-qualified. As for Constr-inscope-1-4, the comparator is "Inspect", so it is up to you to make the choice for correctness of the result. The inscope-namespace() function is not an options since the feature is not in our foundation list.
*** Bug 2359 has been marked as a duplicate of this bug. ***
OK, I missed the "inspect". Can you explain the concept "our foundation list"? Who does "our" refer to?
The Guidelines for XML Query Test Suite Submissions (http://www.w3.org/XML/Query/test-suite/Guidelines%20for%20Test%20Submission.html) contains a table that is introduced by the following bullet: "Submitted tests for a particular section must include only functionality defined by that section and by the provided foundation features. The XML Query Working Group defines the following features as foundation features:"