This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In the Microsoft "schema" test set, <test group="schG3" name="schG3.v"/> the instance is described in the metadata as valid. The catalog (and xsi:schemaLocation) invoke schG3_a.xsd with targetNS ns_a; this imports schG3_b.xsd with targetNS ns_b. This in turn contains: <xsd:import namespace="ns-a" schemaLocation="schG3_c.xsd" /> Because schemaLocation is a hint, and a schema for ns_a is already available, the processor is not obliged to load schG3_c.xsd. If the processor decides not to do so, then no element declaration will be available for {ns_a}foo, and validation will therefore fail.
Test schG6 can produce differing results for the same reasons. The conflict between two schema documents will be detected only if the schema location hints are followed.
Test schG11 can produce differing results for the same reasons. The conflict between two schema documents will be detected only if the schema location hints are followed.
Test schG12 can produce differing results for the same reasons. Validation of the instance will succeed only if all location hints on xs:import are followed.
C.f. 4131 I suggested those tests should be removed, but maybe what we should do for those and these is use the proposed new 'implDep' annotation. . .
WG asked MH to consider this bug as part of the schemaLocation ACTION 2010-05-07.2.
Long ago (September 2010) I was asked to check the status of this issue, but have only done so now. The current status is that test groups schG3, schG6, schG11, and schG12 are still in the state described in the bug report; each of them has only a single expected result. If the WG adopts the proposals in bug 15650 (rules for schemaLocation information in tests and for schemaDocument information in metadata) and bug 15651 (a modified version of the proposal made by Mary Holstege in June 2010), we can modify the metadata for schG3 as shown below (and analogously for the other test groups in question). 1 Replace the existing schemaDocument element with three: <schemaDocument xlink:href="../msData/schema/schG3_a.xsd" role="initial" namespace="ns-a"/> <schemaDocument xlink:href="../msData/schema/schG3_b.xsd" role="schema-import" namespace="ns-b"/> <schemaDocument xlink:href="../msData/schema/schG3_c.xsd" role="schema-import" namespace="ns-a"/> 2 Replace the instanceTest with <instanceTest name="schG3.v"> <instanceDocument xlink:href="../msData/schema/schG3.xml"/> <expected version="import-schema-loc-follow" validity="valid"/> <expected version="import-schema-loc-ignore" validity="invalid"/> <prior date="2012-01-20" status="stable"> <xs:annotation><xs:documentation> Add qualifiers to expected results. </xs:documentation></xs:annotation> </prior> <prior date="2007-01-02" status="queried"> <xs:annotation><xs:documentation> See bug 4133; results of test depend on schema location behavior. </xs:documentation></xs:annotation> </prior> <prior date="2006-07-16" status="accepted"/> </instanceTest>