<?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>4684</bug_id>
          
          <creation_ts>2007-06-21 17:26:58 +0000</creation_ts>
          <short_desc>Can sml:keyref refer to an xs:key/unique?</short_desc>
          <delta_ts>2007-10-16 20:56:12 +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</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          <dependson>4995</dependson>
    
    <dependson>5130</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="Kirk Wilson">kirk.wilson</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>15505</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-06-21 17:26:58 +0000</bug_when>
    <thetext>For example, is the following allowed? Or should sml:keyref only be able to refer to sml:key/unique?

&lt;xs:element name=&quot;e&quot; type=&quot;t&quot;&gt;
 &lt;xs:annotation&gt;
  &lt;xs:appinfo&gt;
   &lt;sml:keyref name=&quot;myRef refer=&quot;tns:myKey&quot;&gt;
    ...
   &lt;/sml:keyref&gt;
  &lt;/xs:appinfo&gt;
 &lt;/xs:annotation&gt;

 &lt;xs:key name=&quot;myKey&quot;&gt;
  ...
 &lt;/xs:key&gt;
&lt;/xs:element&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16302</commentid>
    <comment_count>1</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-08-28 13:48:15 +0000</bug_when>
    <thetext>A good scenario for reusing xs:key/unique is in legacy documents; you may want to reuse an existing schema key/unique and refer to it from another document using the sml:keyref element</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16303</commentid>
    <comment_count>2</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-08-28 14:50:17 +0000</bug_when>
    <thetext>there are too many unknowns about this one; move target to LC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16493</commentid>
    <comment_count>3</comment_count>
    <who name="Kirk Wilson">kirk.wilson</who>
    <bug_when>2007-09-12 12:37:55 +0000</bug_when>
    <thetext>Recommendation has been proposed to add an optional scope attribute to sml:keyref that implicit contains a deref() and refers to the element in which the xs:key/xs:unique is defined.

See http://lists.w3.org/Archives/Public/public-sml/2007Sep/0077.html for complete proposal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17032</commentid>
    <comment_count>4</comment_count>
    <who name="Kirk Wilson">kirk.wilson</who>
    <bug_when>2007-10-04 17:22:51 +0000</bug_when>
    <thetext>Or does the resolution of 5130 depend on how we choose to resolve this issue?  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17159</commentid>
    <comment_count>5</comment_count>
    <who name="Kirk Wilson">kirk.wilson</who>
    <bug_when>2007-10-12 14:59:00 +0000</bug_when>
    <thetext>Revised proposal for discussion at second Redmond F2F
http://lists.w3.org/Archives/Public/public-sml/2007Oct/0083.html
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17244</commentid>
    <comment_count>6</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-10-16 20:46:21 +0000</bug_when>
    <thetext>decision at redmond f2f:
We decided to keep SML and XSD id constratints separate. Bug 5130 will marked
editorial so that this can be clarified in the spec.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>