[Bug 13889] New: Handling of open contents in complex type extension

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13889

           Summary: Handling of open contents in complex type extension
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: IBM tests
        AssignedTo: cmsmcq@blackmesatech.com
        ReportedBy: sandygao@ca.ibm.com
         QAContact: public-xml-schema-testsuite@w3.org


Similar to bug 13760, IBM "openContent" test "s3_4_1si06" should have expected
validity "valid". The schema /ibmData/schema_invalid/S3_4_1/s3_4_1si06.xsd has

<!-- 
Test Case Type: Schema invalid test
Description   : Tests 1.4.3.2.2.4 - baseType wildcard is not a subset of
derived type's wildcard in extension
-->

<complexType name="c">
 <openContent mode="interleave">
  <any processContents="lax"/>
 </openContent>
 <all>
  <element name="x" type="integer"/>
  <element name="y" type="integer"/>
 </all>
</complexType>

<complexType name="d">
 <complexContent>
  <extension base="a:c">
   <openContent mode="interleave">
    <any processContents="lax" notQName="hi"/>    <!-- invalid -->
   </openContent>
  </extension>
 </complexContent>
</complexType>

Type "d" extends "c", so it's open content wildcard is merged with that of the
base type, and the subset condition is satisfied.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 24 August 2011 15:25:18 UTC