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

[Bug 2065] R-076: Question about content type EMPTY

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 02:54:21 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EDZ1x-0003rb-OU@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2065

           Summary: R-076: Question about content type EMPTY
           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 {content type} of the following type is EMPTY, according to the rules for 
determining {content type} for complex types:

   <complexType name="foo">
     <sequence>
     </sequence>
   </complexType>
However, it doesn't appear that the {content type} of either of the following 
examples is EMPTY according to these rules. Have I understood the rules 
correctly, and was this intended?

   <complexType name="bar">
     <sequence>
       <sequence>
       </sequence>
     </sequence>
   </complexType>

   <complexType name="bob">
     <sequence>
        <element name="a" minOccurs="0" maxOccurs="0"/>
     </sequence>
   </complexType>

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0044.html
Received on Friday, 9 September 2005 02:54:24 GMT

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