- From: <bugzilla@jessica.w3.org>
- Date: Thu, 11 Aug 2011 17:34:37 +0000
- To: public-xml-schema-testsuite@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13760 --- Comment #1 from Sandy Gao <sandygao@ca.ibm.com> 2011-08-11 17:34:36 UTC --- A similar test is "open032" with schema "saxonData/Open/open032.bad.xsd". This is expected to be invalid, and contains: <!-- invalid complex type extension: base type allows open content, extended type does not --> <xs:complexType name="B"> <xs:openContent mode="interleave"> <xs:any namespace="http://open.com/" processContents="lax"/> </xs:openContent> <xs:sequence> <xs:element name="a" maxOccurs="unbounded"/> <xs:element name="b" minOccurs="0"/> <xs:element name="c" minOccurs="0"/> <xs:element name="d" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:complexType name="R"> <xs:complexContent> <xs:extension base="B"> <xs:openContent mode="none"/> <xs:sequence/> </xs:extension> </xs:complexContent> </xs:complexType> Because "R" has a "none" open content, it inherits from "B", and the comment "base type allows open content, extended type does not" is not true. -- 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 Thursday, 11 August 2011 17:34:45 UTC