- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 07 Sep 2005 20:22:52 +0000
- To: www-xml-schema-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2020 Summary: R-042: Potential problem with particle derivation Choice:Choice rules Product: XML Schema Version: 1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: XSD Part 1: Structures AssignedTo: ht@w3.org ReportedBy: sandygao@ca.ibm.com QAContact: www-xml-schema-comments@w3.org The particle derivation rules for "RecurseLax" appear to prohibit the following type derivation. Was this intentional, or should the rules be modified to permit such a derivation? The mail below suggests a possible modification of the rules. <xs:complexType name="B"> <xs:choice minOccurs="1" maxOccurs="1"> <xs:group minOccurs="0" maxOccurs="1" ref="ChoiceGroup"/> <xs:element name="e"/> </xs:choice> </xs:complexType> <xs:complexType name="derived"> <xs:complexContent> <xs:restriction base="xs:B"> <xs:group minOccurs="0" maxOccurs="1" ref="ChoiceGroup"/> </xs:restriction> </xs:complexContent> </xs:complexType> <xs:group name="ChoiceGroup"> <xs:choice> <xs:element name="e2"/> <xs:element name="e3"/> </xs:choice> </xs:group> See http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001JulSep/0035.html
Received on Wednesday, 7 September 2005 20:22:56 UTC