W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2020] R-042: Potential problem with particle derivation Choice:Choice rules

From: <bugzilla@wiggum.w3.org>
Date: Wed, 07 Sep 2005 20:22:52 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1ED6RY-000594-Fo@wiggum.w3.org>


           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:complexType name="derived">
  <xs:restriction base="xs:B">
   <xs:group minOccurs="0" maxOccurs="1" ref="ChoiceGroup"/>

<xs:group name="ChoiceGroup">
  <xs:element name="e2"/>
  <xs:element name="e3"/>

Received on Wednesday, 7 September 2005 20:22:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:03 UTC