<?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>5380</bug_id>
          
          <creation_ts>2008-01-16 18:15:43 +0000</creation_ts>
          <short_desc>Clarify XSD vs. xsi:schemaLocation attribute</short_desc>
          <delta_ts>2008-01-22 12:47:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SML</product>
          <component>Interchange Format</component>
          <version>unspecified</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>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kirk Wilson">kirk.wilson</reporter>
          <assigned_to name="Kumar Pandit">kumarp</assigned_to>
          
          
          <qa_contact name="SML Working Group discussion list">public-sml</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18360</commentid>
    <comment_count>0</comment_count>
    <who name="Kirk Wilson">kirk.wilson</who>
    <bug_when>2008-01-16 18:15:43 +0000</bug_when>
    <thetext>Section 4: there is reference to xsi:schemaLocation occurring in Schema documents.  I believe this is permitted, but this use of the schemaLocation attribute is rare and is not referred to again in the text.  Section 4 should more explicitly recognize the distinction between the xsi:schemaLocation attributes that typically occurs in model instance documents (but must be address wherever it occurs) vs. the schemaLocation attribute in the XSDL &lt;import&gt; (which also has to be addressed).  In particular, section 5.3.3 should address both the XSD schemaLocation attribute, which it does, and the second parameter of the xsi:schemaLocation attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18366</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-01-16 20:07:00 +0000</bug_when>
    <thetext>&gt; Section 4: there is reference to xsi:schemaLocation occurring in Schema
&gt; documents. 

I agree this sentence (in 4.0) is not optimal. Suggest to remove &quot;xsi:&quot;. (Just went back and checked my proposal for this section, and it didn&apos;t have &quot;xsi:&quot;. Some kind of copy/paste error must have happened when the proposal was incorporated.)

&gt; Section 4 should more explicitly recognize the distinction between the
&gt; xsi:schemaLocation attributes that typically occurs in model instance
&gt; documents (but must be address wherever it occurs)

They are not required to be addressed. See the first bullet 3 in section 4.3.2 of http://www.w3.org/TR/xmlschema-1/

&gt; vs. the schemaLocation attribute in the XSDL &lt;import&gt; (which also has to be
&gt; addressed).

These are not required to be addressed either. See &quot;Schema Document Location Strategy&quot; in section 4.3.2 of http://www.w3.org/TR/xmlschema-1/.

I agree that different schema location cases need to be distinguished. This is implicitly covered in section 5.3.3 and 5.5, where xsi:schemaLocation and schemaLocation on &lt;xs:import&gt; are ignored (only schemaLocation on &lt;xs:include&gt; and &lt;xs:redefine&gt; are used).

Don&apos;t feel strongly about whether section 4 should give an informal statement about this situation.

&gt; In particular, section 5.3.3 should address ... the second parameter of the
&gt; xsi:schemaLocation attribute.

I think the decision we made was to ignore xsi:schemaLocation attributes (and schemaLocation on &lt;xs:import&gt; elements), and use &quot;namespace matching&quot; to locate relevant schema documents. One reason we chose to do this is to improve inter-op, because how these attributes are handled almost completely depends on the schema processor.

Are you suggesting that we should reopen that topic?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18394</commentid>
    <comment_count>2</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2008-01-17 19:19:28 +0000</bug_when>
    <thetext>In response to the final question in comment #1 - Kirk&apos;s answer is &apos;no&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18452</commentid>
    <comment_count>3</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-01-22 12:45:59 +0000</bug_when>
    <thetext>updated section 4 to use the following sentence:

Less obvious are such references as certain schemaLocation attributes in schema documents and xsi:schemaLocation attributes in instance documents. Section 4.4 Schema Document Bindings defines how schemaLocation is processed in these cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>