<?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>4056</bug_id>
          
          <creation_ts>2006-12-09 15:44:26 +0000</creation_ts>
          <short_desc>elemT026 - illegal xsi:type</short_desc>
          <delta_ts>2010-02-03 15:18:08 +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>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>metadata updated 2008-11-11</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="Henry S. Thompson">ht</assigned_to>
          <cc>arthurdm</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>13112</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-09 15:44:26 +0000</bug_when>
    <thetext>In the Microsoft Element tests, group elemT026, the instance has 

&lt;test2 xsi:type=&quot;Union-A&quot;&gt;1&lt;/test2&gt;

where Union-A is a union type with A (the declared type of test2) as its only member.

From my reading of the specification (Schema Component Constraint: Type Derivation OK (Simple)), Union-A is not validly derived from A, so the instance is invalid under clause 4.3 of Validation Rule: Element Locally Valid (Element).

Very similar problems affect elemT027, elemT028, and elemT029.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13113</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-09 15:47:15 +0000</bug_when>
    <thetext>The same problem affects:

   &lt;test group=&quot;elemT054&quot; name=&quot;elemT054.v&quot;/&gt;
   &lt;test group=&quot;elemT055&quot; name=&quot;elemT055.v&quot;/&gt;
   &lt;test group=&quot;elemT056&quot; name=&quot;elemT056.v&quot;/&gt;
   &lt;test group=&quot;elemT057&quot; name=&quot;elemT057.v&quot;/&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13115</commentid>
    <comment_count>2</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2006-12-09 17:58:05 +0000</bug_when>
    <thetext>The declared type of test2 is the ur-type, so I agree the result should &apos;invalid&apos;, but not for the reason you give. . .

XSV says:

  &lt;invalid char=&quot;2&quot; code=&quot;cvc-elt.4.3&quot; line=&quot;2&quot;
           resource=&quot;file:///C:/cygwin/tmp/elemT026.xml&quot;&gt;xsi:type {None}:Union-A is not allowed to substitute for the declared type anyType&lt;/invalid&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13838</commentid>
    <comment_count>3</comment_count>
    <who name="Zafar Abbas">zafara</who>
    <bug_when>2007-01-29 22:43:44 +0000</bug_when>
    <thetext>Agreed that the expected outcome of this test should be invalid. We are
following up with the WG to determine the process of updating the test suite.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20696</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-21 15:38:29 +0000</bug_when>
    <thetext>Agreed. These instances are invalid because the element declaration in each case blocks restriction (and not for the reason stated in the original bug report).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31424</commentid>
    <comment_count>5</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-02-03 15:18:08 +0000</bug_when>
    <thetext>*** Bug 4227 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>