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
Cc:
Message-Id: <E1ED6RY-000594-Fo@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT