<?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>8616</bug_id>
          
          <creation_ts>2010-01-04 09:53:34 +0000</creation_ts>
          <short_desc>Schema simpleContent.xsd is invalid</short_desc>
          <delta_ts>2010-02-17 20:14:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="Michael Kay">mike</reporter>
          <assigned_to name="Mary Holstege">holstege</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30365</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-01-04 09:53:34 +0000</bug_when>
    <thetext>I believe the schema simpleContent.xsd is invalid. (It was introduced to support new tests testing the resolution of bug #4413, that is validateexpr-sc-1 et seq, I believe by Mary Holstege.)

Line 28 has

&lt;xs:complexType name=&quot;complexExtendsEmptyMixed&quot;&gt;
  &lt;xs:annotation&gt;
    &lt;xs:documentation&gt;
    A complex type that extends a mixed content base with no content model.
    &lt;/xs:documentation&gt;
  &lt;/xs:annotation&gt;
  &lt;xs:simpleContent&gt;
    &lt;xs:extension base=&quot;ss:emptyMixed&quot;/&gt;
  &lt;/xs:simpleContent&gt;
&lt;/xs:complexType&gt;

where ss:emptyMixed is

&lt;xs:complexType name=&quot;emptyMixed&quot; mixed=&quot;true&quot;&gt;
  &lt;xs:annotation&gt;
    &lt;xs:documentation&gt;
    A complex type that is mixed but with no content model.
    &lt;/xs:documentation&gt;
  &lt;/xs:annotation&gt;
  &lt;xs:sequence/&gt;
&lt;/xs:complexType&gt;

Under XSD 1.0, emptyMixed results in a complexType schema component with {contentType} = (mixed, a particle with (minOccurs=1, maxOccurs=1, term=(compositor=sequence, particles=empty))).

The complexType component derived from complexExtendsEmptyMixed does not satisfy Schema Component Constraint: Derivation Valid (Extension), because none of the conditions in clause 1.4 is true:

1.4.1 is false because the {content type} of the {base type definition} is not a simple type definition

1.4.2 is false because the {content type} of the {base type definition} is not empty (it is a particle whose term is an empty sequence, which is not the same thing)

1.4.3 is false because 1.4.3.1 is false: the {content type} of the complex type definition itself [complexExtendsEmptyMixed] does not specify a particle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31671</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2010-02-09 17:03:07 +0000</bug_when>
    <thetext>Looks right to me. I&apos;ll fix the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32280</commentid>
    <comment_count>2</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2010-02-17 20:14:21 +0000</bug_when>
    <thetext>Fixed 2010-02-17. Removed bogus extension and test that depends on it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>