<?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>5248</bug_id>
          
          <creation_ts>2007-11-05 16:52:18 +0000</creation_ts>
          <short_desc>What does it mean if &lt;locator&gt; is not resolved</short_desc>
          <delta_ts>2008-06-05 19:04:00 +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>FPWD</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>
          <dependson>5118</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="Virginia Smith">virginia.smith</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>17592</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-11-05 16:52:18 +0000</bug_when>
    <thetext>The current IF draft has:

&quot;A conforming SML-IF consumer MAY locate a referred to document. If a conforming SML-IF consumer chooses to not locate a referred to document, it SHOULD make its invoker aware of this condition.&quot;

The spec should be clear about what it means if either of the following is true (both are allowed):
- The consumer doesn&apos;t attempt to resolve documentURI (or other mechanism used by &lt;locator&gt;)
- The consumer does attempt to resolve it but failed.

Should it be:
a An error
b Treated as if containing &lt;document&gt; is not in the IF document
c Treated as if the interchange set doesn&apos;t not contain this document
...

Difference between (b) and (c) is that (b) will hide errors like duplicate aliases and (c) won&apos;t.

I prefer (c).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17655</commentid>
    <comment_count>1</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-11-10 03:39:25 +0000</bug_when>
    <thetext>Proposal:
Align this with the proposal for 5040. 

The behavior of a conforming SML-IF consumer is undefined when it enounters error when dereferencing a &apos;locator&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17674</commentid>
    <comment_count>2</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-11-12 16:13:54 +0000</bug_when>
    <thetext>Agree with #1 - recommend resolving as per #1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17687</commentid>
    <comment_count>3</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-11-12 22:05:08 +0000</bug_when>
    <thetext>Fix as per (c) in Sandy&apos;s original proposal. This should be the behavior of IF consumers when
- The consumer doesn&apos;t attempt to resolve &lt;locator&gt; 
- The consumer does attempt to resolve it but failed (network error or document not present)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17689</commentid>
    <comment_count>4</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2007-11-13 00:02:54 +0000</bug_when>
    <thetext>Fixed as follows:

Old text:
--------
5.2.2 Document References

If a document is to be referred to rather than embedded, SML-IF producers MUST provide its location using the locator child of the corresponding document element. SML-IF specifies one way that MAY be used to provide the location of the referred to document, the documentURI element. A conforming SML-IF consumer MAY locate a referred to document. If a conforming SML-IF consumer chooses to not locate a referred to document, it SHOULD make its invoker aware of this condition. 
--------

New text:
--------
5.2.2 Referenced Documents

If a document is to be referred to rather than embedded, SML-IF producers MUST provide its location using the locator child of the corresponding document element. SML-IF specifies one way that MAY be used to provide the location of the referenced document, the documentURI element.

An SML-IF consumer MAY choose to locate a referenced document. If an SML-IF consumer chooses not to locate a referenced document or if it attempts to locate the referenced document and this attempt fails, then the SML-IF consumer MUST treat the referenced document as if it is not part of this interchange set. If either of these conditions occurs, the SML-IF consumer SHOULD make its invoker aware of this condition. 
--------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17711</commentid>
    <comment_count>5</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-11-14 07:02:38 +0000</bug_when>
    <thetext>The change looks correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17740</commentid>
    <comment_count>6</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2007-11-15 17:36:21 +0000</bug_when>
    <thetext>from: &quot;...as if it is not part of this interchange...&quot;
to  : &quot;...as if it is not part of the  interchange...&quot;

aside from that, fine</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>