<?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>5707</bug_id>
          
          <creation_ts>2008-05-22 01:06:30 +0000</creation_ts>
          <short_desc>clarify SML reference resolution when sml:uri value is an empty string</short_desc>
          <delta_ts>2008-07-03 02:48:17 +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>Core+Interchange Format</component>
          <version>LC</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          <dependson>5542</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kumar Pandit">kumarp</reporter>
          <assigned_to name="Kumar Pandit">kumarp</assigned_to>
          <cc>johnarwe</cc>
    
    <cc>pratul.dublish</cc>
          
          <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>20212</commentid>
    <comment_count>0</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-05-22 01:06:30 +0000</bug_when>
    <thetext>Our spec says that an SML ref with only a fragment in its URI, targets an element (pointed to by the fragment) within the document that contains the reference. The spec is silent about the case where the value of sml:uri is an empty string. I think, this points to the root element of the document that contains the reference. This would be consistent with RFC 3986 (section 4.4 Same-document Reference). 
  
In other words, all of the refs below point to the same target.   
  
a.xml 
----- 
&lt;x:root xmlns:sml=&quot;http://www.w3.org/2008/03/sml&quot; xmlns:x=&quot;urn:x&quot;&gt; 
    &lt;x:ref sml:ref=&quot;true&quot;&gt; 
        &lt;sml:uri&gt;a.xml&lt;/sml:uri&gt; 
    &lt;/x:ref&gt; 
    &lt;x:ref sml:ref=&quot;true&quot;&gt; 
        &lt;sml:uri&gt;a.xml#smlxpath1(/x:root)&lt;/sml:uri&gt; 
    &lt;/x:ref&gt; 
    &lt;x:ref sml:ref=&quot;true&quot;&gt; 
        &lt;sml:uri&gt;#smlxpath1(/x:root)&lt;/sml:uri&gt; 
    &lt;/x:ref&gt; 
    &lt;x:ref sml:ref=&quot;true&quot;&gt; 
        &lt;sml:uri&gt;&lt;/sml:uri&gt; 
    &lt;/x:ref&gt; 
&lt;/x:root&gt;

Proposal:
Update section 4.3.1 SML URI Reference Scheme in the SML spec and section 5.3.4 URI Reference Processing bullet 1.a appropriately to clarify the case mentioned above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20241</commentid>
    <comment_count>1</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2008-05-22 19:39:45 +0000</bug_when>
    <thetext>Discussed in 5/22 call
Kumar to update the bug with a new proposal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20377</commentid>
    <comment_count>2</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-06-05 06:53:03 +0000</bug_when>
    <thetext>Proposal:
[1]
Add the following non-normative note after 2.b in 4.3.1 SML URI Reference Scheme

Note: If the relative reference is an empty string or if it consists of only a fragment component then step 2.b is skipped because the document containing the SML reference is the target document.

[2]
Change 1.a in section 5.3.4 URI Reference Processing:

From:
If UR contains only a fragment component, then D is the model document that contains UR.

To:
If UR is an empty string or if it contains only a fragment component, then D is the model document that contains UR.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20439</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-06-12 20:14:01 +0000</bug_when>
    <thetext>The WG discussed this issue at its 2008-06-12 telecon. A few observations about the first change suggested in comment #2:
1. When the original reference is empty or only has fragment component, then both 2.a and 2.b should be affected.
2. It&apos;s not clear that the suggested note (non-normative) is a consequence of normative statements. There may need to be more changes to achieve the desired effect.
3. The actual wording changes for this bug may depend on the resolution of bug 5542.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20764</commentid>
    <comment_count>4</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-06-24 09:26:33 +0000</bug_when>
    <thetext>(f2f consensus)
SML 4.3.1 2 b replacement
A document is obtained by one of the following methods. (2.b.1) by recognizing that the relative reference is a same-document reference (2.b.2) by dereferencing the URI reference ignoring any fragment component, using the appropriate operation defined for the URI scheme used in that URI reference. If a document in the current model does not result, the SML URI Reference Scheme instance is unresolved.

SMLIF 5.3.4 1 a 
from: If UR contains only a fragment component     ,
to  : If UR is            a same-document reference [rfc 3986 section 4.4],

editors to mark this needsReview after text is drafted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21034</commentid>
    <comment_count>5</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-07-03 02:48:17 +0000</bug_when>
    <thetext>fixed per comment# 4.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>