<?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>2174</bug_id>
          
          <creation_ts>2005-09-14 18:13:16 +0000</creation_ts>
          <short_desc>R-176: Question about mixed in derivation by extension</short_desc>
          <delta_ts>2009-04-21 19:21:34 +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/1.1 both</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</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>6171</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:13:16 +0000</bug_when>
    <thetext>Consider the following schema fragment: 

   &lt;xs:complexType name=&quot;mixed&quot; mixed=&quot;true&quot;&gt;
     &lt;xs:choice minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;
       &lt;xs:element ref=&quot;test:a&quot;/&gt;
       &lt;xs:element ref=&quot;test:b&quot;/&gt;
     &lt;xs:choice&gt;
   &lt;xs:complexType&gt;
 
   &lt;xs:element name=&quot;root&quot;&gt;
     &lt;xs:complexType&gt;
       &lt;xs:complexContent&gt;
         &lt;xs:extension base=&quot;test:mixed&quot;&gt;
           &lt;xs:attribute name=&quot;id&quot; type=&quot;xs:ID&quot;/&gt;
         &lt;xs:extension&gt;
       &lt;xs:complexContent&gt;
     &lt;xs:complexType&gt;
   &lt;xs:element&gt;

Is the following instance valid? (i.e. is root allowed to have mixed content?)

 &lt;root xmlns=&quot;http://example.com/test&quot;&gt;
   ccc&lt;a&gt;aaa&lt;b&gt;bbb&lt;b&gt;aaa&lt;a&gt;ccc&lt;b&gt;bbb&lt;a&gt;aaa&lt;a&gt;bbb&lt;b&gt;ccc
 &lt;root&gt;

Henry&apos;s response: Yes. Note, however, that this &quot;redundancy&quot; can only be 
avoided when the extending definition is empty -- if any substantive element 
content is added, then the result is specified by the REC to take its &apos;mixed&apos; 
from the extending definition. But the REC also rules out extending mixed with 
element-only or vice-versa, so there&apos;s no point. 

This isn&apos;t a big deal, but it should probably be fixed, by
- specifiying that in complexContent extension, the mixed _always_ comes from 
the base; 
- ruling out conflicting &apos;mixed&apos; on &lt;complexType&gt; or &lt;complexContent&gt; when 
deriving by extension. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002JulSep/0087.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6172</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:13:44 +0000</bug_when>
    <thetext>Discussed at the 2003-11-14 telecon. Sandy Gao to study the relevant sections 
and report back to the WG

Sandy&apos;s research:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2003Dec/0029.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15204</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-05-25 13:47:02 +0000</bug_when>
    <thetext>Discussed at 2007-05-18 telecon. The issue may be solvable, but the benefit doesn&apos;t seem to justify the amount of spec changes.

The WG decided to marking this issue as LATER, meaning it *may* be dealt with in a future schema release after 1.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>