<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2210</bug_id>
          
          <creation_ts>2005-09-14 19:13:49 +0000</creation_ts>
          <short_desc>R-218: Clarification required for complexContent extending simpleContent</short_desc>
          <delta_ts>2012-12-04 00:54:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>decided</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>4275</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6230</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:13:49 +0000</bug_when>
    <thetext>Consider 

&lt;complexType name=&quot;derived&quot; mixed=&quot;false&quot;&gt;
 &lt;complexContent mixed=&quot;false&quot;&gt;
  &lt;extension base=&quot;base&quot;/&gt;
 &lt;/complexContent&gt;
&lt;/complexType&gt;

where &quot;base&quot; is a complex type whose {content type} is a simple type 
definition. 

Then according to structure 3.4.2, &quot;derived&quot; has the same content type as base, 
which is a simple type definition. But it specified &lt;complexContent&gt; 
explicitly, and mixed = false. This seems confusing. 

And if mixed was true on &lt;complexType&gt; and &lt;complexContent&gt; then the rule 
actually says that &quot;derived&quot; has a content of a sequence of an empty sequence, 
following the particle from &quot;base&quot;. But &quot;base&quot; doesn&apos;t have a particle. (Rules 
from 3.4.6 says this is invalid, but those are at the component level. Here we 
are talking about the mapping.) 

IMO, &lt;complexContent&gt; shouldn&apos;t be allowed to extend a complex type with simple 
content. That is, change bullet 1 of the constraint &quot;Complex Type Definition 
Representation OK&quot; [1] to 

1 If the &lt;complexContent&gt; alternative is chosen, then all of the following must 
be true: 
1.1 The type definition resolved to by the actual value of the base [attribute] 
must be a complex type definition; 
1.2 If the &lt;extension&gt; alternative is also chosen, then the type definition 
resolved to by the actual value of the base [attribute] must not be a complex 
type definition whose {content type} is a simple type definition; 

[1] http://www.w3.org/XML/Group/2002/09/xmlschema-1/structures-with-
errata.html#src-ct 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JanMar/0048.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6231</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:13:59 +0000</bug_when>
    <thetext>HT proposed a resolution to R-218 which was discussed at the 2003-10-10 
telecon. Proposed errata text approved (but the WG allows him to edit the text 
to express it more formally).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6657</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-10-06 17:59:13 +0000</bug_when>
    <thetext>Link to the original message should be:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003AprJun/0048.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13795</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-01-24 14:58:15 +0000</bug_when>
    <thetext>Link to the approved proposal:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2003Sep/0070.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>