<?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>6600</bug_id>
          
          <creation_ts>2009-02-19 17:34:36 +0000</creation_ts>
          <short_desc>particlesZ031 seems to be wrong</short_desc>
          <delta_ts>2009-02-19 18:20:11 +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>Microsoft tests</component>
          <version>2006-11-06</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5943</dup_id>
          
          <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="Tobias Koenig">tobias.koenig</reporter>
          <assigned_to name="Henry S. Thompson">ht</assigned_to>
          <cc>mike</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>23830</commentid>
    <comment_count>0</comment_count>
    <who name="Tobias Koenig">tobias.koenig</who>
    <bug_when>2009-02-19 17:34:36 +0000</bug_when>
    <thetext>Hej,

particlesZ031 is marked as valid however it seems to be invalid.
The schema test tries to inherit a complex type with complex content
from a complex type with simple content. Schema 1.0 allows to constructs
the derived type with a &quot;simple&quot; content, however according to Schema 1.1
the content should be &quot;empty&quot; (I guess 1.1 tries to be more explicit than 1.0 here). However if the derived type as an &quot;empty&quot; content, than there is no
rule in &quot;Schema Component Constraint: Derivation Valid (Extension)&quot; that would
make it a valid extension. So the test case should be marked as invalid.

Ciao,
Tobias</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23831</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-02-19 18:08:24 +0000</bug_when>
    <thetext>Please see bug #5943 which was raised against the spec on this one.

My analysis is/was:

In XSD 1.0 this is legal, by mistake. The rules should stop you deriving complexContent from simpleContent, but they don&apos;t, and you end up with simpleContent even though you said you wanted complexContent.

In XSD 1.1 this is illegal. It has been made illegal by the rather artificial device of generating a schema component that is deliberately invalid (it fails the consistency tests for schema components). In discussion of bug #5943 I appealed against the use of this technique because I felt it made life so difficult for readers of the spec, but I lost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23832</commentid>
    <comment_count>2</comment_count>
    <who name="Tobias Koenig">tobias.koenig</who>
    <bug_when>2009-02-19 18:20:11 +0000</bug_when>
    <thetext>Ok, that is a duplicate, didn&apos;t found #5943 before :(

*** This bug has been marked as a duplicate of bug 5943 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>