<?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>4126</bug_id>
          
          <creation_ts>2007-01-02 12:34:04 +0000</creation_ts>
          <short_desc>MS dataTypes anyURI_a004</short_desc>
          <delta_ts>2011-12-09 16:25:02 +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>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Test and metadata updated 2010-07-05</status_whiteboard>
          <keywords>decided</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>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>13312</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-02 12:34:04 +0000</bug_when>
    <thetext>In the Microsoft DataTypes test set, test

&lt;test group=&quot;anyURI_a004_1339&quot; name=&quot;anyURI_a004_1339&quot;/&gt;

the schema contains:

	&lt;!-- should give only 3 warning for the unresolved schemaLocations --&gt;
	&lt;xsd:include schemaLocation=&quot;ftp://ftp.is.co.za/rfc/rfc1808.txt&quot;/&gt;
	&lt;xsd:import schemaLocation=&quot;gopher://spinaltap.micro.umn.edu/00/Weather/California/Los%20Angeles&quot; namespace=&quot;gopher://spinaltap.micro.umn.edu/00/Weather/California/Los%20Angeles&quot;/&gt;
	&lt;xsd:redefine schemaLocation=&quot;mailto:mduerst@ifi.unizh.ch&quot;/&gt;

The test appears to be written on the assumption that the URIs should fail to resolve, and that this is a warning condition rather than an error. However, the first URI does resolve, and yields a resource that cannot be parsed as XML.

XML Schema Part 1, Schema Representation Constraint: Inclusion Constraints and Semantics states:

In addition to the conditions imposed on &lt;include&gt; element information items by the schema for schemas, all of the following must be true:
1 If the ·actual value· of the schemaLocation [attribute] successfully resolves one of the following must be true:
1.1 It resolves to (a fragment of) a resource which is an XML document (of type application/xml or text/xml with an XML declaration for preference, but this is not required), which in turn corresponds to a &lt;schema&gt; element information item in a well-formed information set, which in turn corresponds to a valid schema.
1.2 It resolves to a &lt;schema&gt; element information item in a well-formed information set, which in turn corresponds to a valid schema.

Given that the actual value resolves, and neither 1.1 nor 1.2 is true, the schema is invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13802</commentid>
    <comment_count>1</comment_count>
    <who name="Zafar Abbas">zafara</who>
    <bug_when>2007-01-24 19:27:58 +0000</bug_when>
    <thetext>This test should indeed be invalid. This is due a bug in the packaging process
of Microsoft schema tests.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35795</commentid>
    <comment_count>2</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-05-21 15:42:30 +0000</bug_when>
    <thetext>HT suggests changing the first schemaLocation to http://127.0.0.1/must%20not%20resolve%20.xyzzy or something guaranteed not to be resolved.

WG agrees.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36721</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-09 11:37:21 +0000</bug_when>
    <thetext>With the change applied in comment #2, both the schema and the instance now appear to be valid, but the instance is still marked as invalid in the metadata.

I have marked the instanceTest as &quot;queried&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61306</commentid>
    <comment_count>4</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-12-09 16:25:02 +0000</bug_when>
    <thetext>WG believes the metadata should be updated per comment 3.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>