<?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>16860</bug_id>
          
          <creation_ts>2012-04-25 21:31:36 +0000</creation_ts>
          <short_desc>&quot;Failure to resolve&quot; in xs:include</short_desc>
          <delta_ts>2012-11-24 22:34: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</product>
          <component>Structures: XSD Part 1</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsReview</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="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67063</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-04-25 21:31:36 +0000</bug_when>
    <thetext>The specification requires processors to behave differently depending on whether the schemaLocation in xs:include &quot;fails to resolve&quot; versus whether it successfully resolves and delivers something that is not a valid schema document.

It should be noted that it may be very difficult to distinguish these two cases. For example, there are two tests schB8 and schE9 that attempt to use the schemaLocation http://foo/foo in xs:include and xs:import respectively. With some internet providers, this URI will fail to resolve. With other internet providers, it will resolve to an HTML document saying that the domain name does not exist and inviting the user to purchase it. (This HTML document will typically be parsed as XML and fail to parse.)

So this distinction is entirely outside the implementor&apos;s control, and clauses requiring (with an emphatic MUST) the processor to distinguish the two cases are unenforceable. I think that despite the &quot;MUST&quot;, a processor that takes the same action in both cases would be conformant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67320</commentid>
    <comment_count>1</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2012-05-04 15:56:21 +0000</bug_when>
    <thetext>WG proposal: add a statement to the paragraph beginning &quot;It is not an error ...&quot; saying that at user option a processor MAY treat it as an error.

Make this change to features like &quot;include&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76821</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2012-10-20 21:02:54 +0000</bug_when>
    <thetext>A diffed version of the spec showing a draft erratum for this issue is now on the server at

  https://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.errata-2012.html
  (member-accessible link)

Accordingly, I&apos;m marking the issue as needs review.

Michael, please note that your bug report specifically mentions the treatment of failure to resolve on xs:include and does not mention the similar wording used for xs:import.  After a superficial examination of the text, I made the change apply to both include and import.  

Oddly enough, I did not see similar wording for redefine or override; perhaps someone should make a more systematic search before we close this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78718</commentid>
    <comment_count>3</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2012-11-23 17:39:12 +0000</bug_when>
    <thetext>The draft errata document https://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.errata-2012.html has changes to address this bug.

We request Michael Kay to take a look and comment, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78747</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-11-24 22:34:02 +0000</bug_when>
    <thetext>The proposed change looks OK to me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>