<?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>2057</bug_id>
          
          <creation_ts>2005-09-09 02:33:55 +0000</creation_ts>
          <short_desc>R-068: Contradiction in Structures re: base for complexTypes with simpleContent</short_desc>
          <delta_ts>2009-04-21 19:24:56 +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>5923</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 02:33:55 +0000</bug_when>
    <thetext>There appears to be a contradiction in Structures as to whether a complexType 
with simpleContent is allowed to be derived by restriction from a mixed type.

The property mapping rules for complex type with simple content state the 
following for content type when restriction is chosen:

&quot;1 if the type definition resolved to by the actual value of the base 
[attribute] is a complex type definition (whose own {content type} must be a 
simple type definition, see below) and the restriction alternative is 
chosen ...&quot;.

In addition, Schema Representation Constraint: Complex Type Definition 
Representation OK states:

&quot;If the &lt;simpleContent&gt; alternative is chosen, the type definition resolved to 
by the actual value of the base [attribute] must be either a complex type 
definition whose {content type} is a simple type definition or, only if the 
&lt;extension&gt; alternative is also chosen, a simple type definition; &quot;

However, &quot;Schema Component Constraint: Derivation Valid (Restriction, Complex)&quot; 
states:

&quot;5.1 If the {content type} of the complex type definition is a simple type 
definition, then one of the following must be true:

5.1.1 The {content type} of the {base type definition} must be a simple type 
definition of which the {content type} is a valid restriction as defined in 
Derivation Valid (Restriction, Simple).

5.1.2 The {base type definition} must be mixed and have a particle which is 
emptiable as defined in Particle Emptiable). &quot;

See: http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2001Jun/0047.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5924</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 02:34:50 +0000</bug_when>
    <thetext>Henry&apos;s response
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2001Jun/0050.html 

Further discussion at the Dec f2f:
http://www.w3.org/XML/Group/2001/12/xml-schema-ftf-minutes.html#ab1b3b3c11b2 

Status 01/2002: Discussion to be postponed until after R-54 is resolved. See 
minutes:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jan/0080.html 

Discussion resumed on April 16:
http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2002Apr/0022.html 

Resolution:
Resolved at the May f2f. The WG decided to instruct the editor to draft 
erratum, correcting any text which conflicts with 5.1.2 above.

Draft errata posted at:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Oct/0201.html 

Discussed and approved at Oct. f2f. See:
http://www.w3.org/XML/2002/10/xml-schema-ftf-minutes 

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

    </bug>

</bugzilla>