[Bug 4067] ctG001: type subsumption and processContents


           Summary: ctG001: type subsumption and processContents
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Microsoft tests
        AssignedTo: ht@inf.ed.ac.uk
        ReportedBy: mike@saxonica.com
         QAContact: public-xml-schema-testsuite@w3.org

In the Microsoft ComplexType test set, test group ctG001 illustrates what is
probably a problem in the spec rather than in the test itself.

In the schema, fooType is a restriction of myType. fooType has the particle
<element name="myElement"/> where myType has <any processContents="strict"/>.
Since there is no global element declaration for myElement, an instance
containing myElement would conform to the subtype but not to the base type,
meaning that type subsumption is violated.

I suspect, though I have not checked carefully, that this is a problem in the
specification rather than in the test. Other examples are ctG007-011.

Received on Monday, 11 December 2006 00:33:39 UTC