<?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>4053</bug_id>
          
          <creation_ts>2006-12-08 22:53:36 +0000</creation_ts>
          <short_desc>DataTypes tests: QName009</short_desc>
          <delta_ts>2010-02-12 12:24:27 +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></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>
          
          
          <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>13107</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-08 22:53:36 +0000</bug_when>
    <thetext>In the Microsoft DataTypes tests, test QName009, the following instance is considered to be valid

&lt;?xml version=&apos;1.0&apos;?&gt;
&lt;root xmlns:xsi=&apos;http://www.w3.org/2001/XMLSchema-instance&apos;
       xsi:noNamespaceSchemaLocation=&quot;QName.xsd&quot; &gt;
  &lt;simpleTest&gt;xmlns:xsi&lt;/simpleTest&gt;
&lt;/root&gt;

where simpleTest is of type QName. The spec says (in a Note!) &quot;The mapping between literals in the ·lexical space· and values in the ·value space· of QName requires a namespace declaration to be in scope for the context in which QName is used.&quot; 

According to the Infoset (and the same is true of XDM) &quot;[in-scope namespaces] does not contain an item with the prefix xmlns (used for declaring namespaces), since an application can never encounter an element or attribute with that prefix&quot;

Therefore I think that xmlns:xsi is an invalid QName and this instance is therefore invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13828</commentid>
    <comment_count>1</comment_count>
    <who name="Zafar Abbas">zafara</who>
    <bug_when>2007-01-29 22:03:27 +0000</bug_when>
    <thetext>This issue in the test suite in due to a corresponding issue in the Microsoft
Schema processors. The fix will be addressed in a future release. Agreed that
the test case should be changed to &apos;invalid&apos;.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20694</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-21 15:21:19 +0000</bug_when>
    <thetext>There was discussion on this but no decision on 21 June 2008. It was felt worthy of wider WG discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22357</commentid>
    <comment_count>3</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2008-11-05 15:17:37 +0000</bug_when>
    <thetext>Although Namespace spec. uses similar language about xml &apos;prefix&apos; and xmlns 
&apos;prefix&apos;, the Infoset spec. says no binding for xmlns is present, and XSLT 2.0 
explicitly rules it out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31481</commentid>
    <comment_count>4</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-02-05 17:22:01 +0000</bug_when>
    <thetext>WG agreed on 2010-02-05 telcon that there is no binding for xmlns as a prefix, 
so these are not valid QNames.  HST will change the metadata to instance invalid</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31857</commentid>
    <comment_count>5</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-02-12 12:24:27 +0000</bug_when>
    <thetext>instance test now marked as invalid in metadata, per above decision</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>