<?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>14442</bug_id>
          
          <creation_ts>2011-10-12 22:32:33 +0000</creation_ts>
          <short_desc>over013 - Overriding a complex type with a simple type</short_desc>
          <delta_ts>2011-11-29 21:48:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema Test Suite</product>
          <component>Saxon tests</component>
          <version>2006-11-06</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsAgreement</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>XSD 1.1 PR</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>David_E3</cc>
          
          <qa_contact name="XML Schema Test Suite mailing list">public-xml-schema-testsuite</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58158</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-10-12 22:32:33 +0000</bug_when>
    <thetext>Test over013 has this:

&lt;xs:override schemaLocation=&quot;over012a.xsd&quot;&gt;
   &lt;xs:simpleType name=&quot;structuredDate&quot;&gt;
      &lt;xs:restriction base=&quot;xs:date&quot;/&gt;
   &lt;/xs:simpleType&gt;
 &lt;/xs:override&gt;

overriding this:

&lt;xs:schema ...&gt;
  &lt;xs:element name=&quot;doc&quot;&gt;
    ...
  &lt;/xs:element&gt;
  &lt;xs:complexType name=&quot;structuredDate&quot;&gt;
     &lt;xs:sequence&gt;
        ...
     &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
&lt;/xs:schema&gt;

and has an expected result of invalid, on the grounds that a simpleType cannot override a complexType. In fact, following the rules in the spec more closely, there appears to be no such error condition. Instead the simpleType simply fails to override anything, and is therefore ignored.

Can the WG confirm that this is the intent of the specification?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59620</commentid>
    <comment_count>1</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-11-04 15:51:50 +0000</bug_when>
    <thetext>After study, WG notes that the behavior seems OK. Warnings might be issued by an agressive implementation, but are not required. The behavior of doing nothing is expected. In any case, the behavior of the stylesheet is within the boundaries of what is defined.

Further, the situation should not result in indication of an error in the schema.

MSM: if we made any change here, I fear we&apos;d have to go back to last call.
MSM:  I do think MK is right to ask: was that really what we intended?  But I think that it&apos;s too late to make design changes at that level.  We either go to Rec with essentially what we&apos;ve got, or we go out of business without a Rec.

Resolved: mark as WORKSFORME but give Michael Kay a chance to redirect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59624</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-11-04 16:25:32 +0000</bug_when>
    <thetext>That&apos;s the decision I was expecting, and it seems prudent given the stage we&apos;re at.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60644</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-11-29 21:48:29 +0000</bug_when>
    <thetext>I have changed the expected result of the test to &quot;valid&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>