This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13889 - Handling of open contents in complex type extension
Summary: Handling of open contents in complex type extension
Status: CLOSED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: IBM tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: XSD 1.1 PR
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard:
Keywords: needsAgreement
: 14490 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-24 15:25 UTC by Sandy Gao
Modified: 2011-10-24 15:51 UTC (History)
2 users (show)

See Also:


Attachments

Description Sandy Gao 2011-08-24 15:25:11 UTC
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.
Comment 1 David Ezell 2011-10-07 16:12:42 UTC
Discussed on 2011-10-07.  Related to bug 13760, and should have a similar outcome.
Comment 2 Michael Kay 2011-10-24 15:51:05 UTC
*** Bug 14490 has been marked as a duplicate of this bug. ***