This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2065 - R-076: Question about content type EMPTY
Summary: R-076: Question about content type EMPTY
Status: CLOSED WORKSFORME
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 02:54 UTC by Sandy Gao
Modified: 2009-04-21 19:24 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-09 02:54:21 UTC
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
Comment 1 Sandy Gao 2005-09-09 02:55:15 UTC
The WG decided (at the 01/03/2002 telecon) that the commentator interpreted the 
rules correctly and they were in fact intended. Also, it should be noted, that 
there are different validation semantics for elements of type "foo" and "bar".