- From: <bugzilla@jessica.w3.org>
- Date: Wed, 18 Apr 2012 18:05:20 +0000
- To: www-xml-schema-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16786 Summary: S4S does not allow openContent without group in complex type restriction Product: XML Schema Version: 1.1 only Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P2 Component: Structures: XSD Part 1 AssignedTo: David_E3@VERIFONE.com ReportedBy: pwalmsley@datypic.com QAContact: www-xml-schema-comments@w3.org CC: cmsmcq@blackmesatech.com The Schema for Schemas does not allow a complex content restriction where an openContent is specified without a group/all/choice/sequence. It is legal to restrict away the entire content model (if everything is optional), so why should you not be able to specify this: <xs:complexType name="ProductType"> <xs:openContent> <xs:any namespace="##any"/> </xs:openContent> <xs:sequence> <xs:element name="child1" type="xs:string" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:complexType name="RestrictedProductType"> <xs:complexContent> <xs:restriction base="ProductType"> <xs:openContent> <xs:any namespace="##other"/> </xs:openContent> </xs:restriction> </xs:complexContent> </xs:complexType> A corner case, to be sure, but it seems like it should be a legal restriction, and the Schema for Schemas considers this invalid. (Incidentally the Schema for Schemas differs slightly from the XML Representation Summary in 3.4.2.3 in this regard.) -- Configure bugmail: https://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, 18 April 2012 18:05:26 UTC