<?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>2025</bug_id>
          
          <creation_ts>2005-09-07 20:29:17 +0000</creation_ts>
          <short_desc>R-047: Request for clarification of complex type derivation restriction rules for empty base</short_desc>
          <delta_ts>2009-04-21 19:24:52 +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>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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="Henry S. Thompson">ht</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>5839</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-07 20:29:17 +0000</bug_when>
    <thetext>Constraint 5.3 of &quot;Schema Component Constraint: Derivation Valid (Restriction, 
Complex)&quot; states:

&quot;5.3 If the {content type} of the {base type definition} is mixed or the 
{content type} of the complex type definition itself is element-only, then the 
particle of the complex type definition itself must be a valid restriction of 
the particle of the {content type} of the {base type definition} as defined in 
Particle Valid (Restriction).&quot;

Does the use of the definite article in the phrase &quot;the particle of the 
{content type} of the {base type definition}&quot; imply that the {content type} 
must have a particle, and must not be empty? If not, what prohobits the 
following:

  &lt;xs:complexType name=&quot;rrr&quot; /&gt;
  &lt;xs:complexType name=&quot;sss&quot;&gt;
    &lt;xs:complexContent&gt;
      &lt;xs:restriction base=&quot;rrr&quot;&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element name=&quot;dummy&quot;/&gt;
        &lt;/xs:sequence&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;

See
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001JulSep/0081.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5840</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-07 20:29:43 +0000</bug_when>
    <thetext>Tentative resolution:
http://www.w3.org/XML/Group/2001/10/xml-schema-ftf-minutes#ab1b3b3b3b1b3 

Resolution
The WG approved the tentative resolution above. An erratum will be created 
clarifying that the example is in error not because of constraint 5.3, but 
because of failure to match particles in one against the other.

Proposed erratum available at:
http://www.w3.org/XML/Group/2002/09/xmlschema-1/structures-with-
errata.html#derivation-ok-restriction 

Sept. 20: RESOLVED: to accept E1-17 as amended (s/from a/by restricting a/).

Erratum E1-15 added.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>