w3c / xsdtests

W3C XML Schema 1.1 test suite
17 stars 7 forks source link

xsi:schemaLocation and XSD 1.1 schema composition #10

Open brunato opened 12 months ago

brunato commented 12 months ago

Implementing a dynamic schema load for xmlschema package i found a set of test cases related with bug 4078.

This bug differentiates XSD 1.0 and XSD 1.1 about the logic of schema composition, so test cases addB156 and addB158 were marked as valid for XSD 1.1. But test cases addB159, addB162, and addB166 are still marked as invalid also for XSD 1.1.

I would ask if this is an oversight or if an additional discussion is needed before changing the state of these cases.

About XSD 1.1 schema composition as described in the 4th item of G.1.15, I'm unsure about the new rule described by this sentence:

Note, however, that if processing such an xsi:schemaLocation attribute causes new components to 
be added to the schema, then the new components cannot change the assessment outcome of 
any information items already seen before the element bearing the xsi:schemaLocation attribute.

What does it means? That I have to validate again the XML document considering the new added components? Or what else?

Thank you