<?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>5064</bug_id>
          
          <creation_ts>2007-09-20 20:29:25 +0000</creation_ts>
          <short_desc>On which component(s) are SML reference constraints specified?</short_desc>
          <delta_ts>2008-02-20 02:56:23 +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>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>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          <dependson>5063</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</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>16733</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-09-20 20:29:25 +0000</bug_when>
    <thetext>This involves sml:target* and SML identity constraints.

There are 3 kinds of &lt;xs:element&gt; elements in schema documents:
1 For global element declaration
2 For local element declaration
3 For reference to global element declaration

On which of the above cases are sml:target* and sml:key/keyref/unique allowed to be specified? And to which schema component(s) (element declaration or particle) are these constraints attached to?

If these constraints are attached to element declarations, then they should not be allowed on case #3; if they are attached to particles, then they should not be allowed on case #1. So if we want to allow them being specified in all 3 cases, then the constraints need to be attached to both element declarations and particles, and we need to explain what happens if the same kind of constraint is specified both on a global element declaration G and on a reference to G.

For example,

&lt;xs:schema&gt;
  &lt;xs:element name=&quot;global&quot; targetType=&quot;type1&quot;&gt;
  &lt;xs:complexType name=&quot;someType&quot;&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element ref=&quot;global&quot; targetType=&quot;type2&quot;/&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complextype&gt;
&lt;/xs:schema&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16735</commentid>
    <comment_count>1</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-09-20 21:43:24 +0000</bug_when>
    <thetext>a. These constraints are supported on global and local element declarations (1 and 2 in the bug&apos;s description)
b. These should be attached to the element declaration schema component
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17414</commentid>
    <comment_count>2</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-10-25 18:46:39 +0000</bug_when>
    <thetext>Please fix as per Pratul&apos;s comment - decision taken on 10/25 call</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17653</commentid>
    <comment_count>3</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2007-11-10 00:58:47 +0000</bug_when>
    <thetext>Can&apos;t resolve this independent of bug 5063. Moving back to needsAgreement and setting it dependent on bug 5063.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17960</commentid>
    <comment_count>4</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-12-05 07:02:00 +0000</bug_when>
    <thetext>The proposal added to bug# 5063 comment# 6 also addresses this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18034</commentid>
    <comment_count>5</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2007-12-10 22:15:21 +0000</bug_when>
    <thetext>Reassigning this bug back to default since it might be easier to fix along with 5063.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18267</commentid>
    <comment_count>6</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-01-10 20:32:31 +0000</bug_when>
    <thetext>resolution in conf call on 1/10: proposal accepted as stated in comment# 9 of bug# 5063</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18788</commentid>
    <comment_count>7</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-02-06 07:48:19 +0000</bug_when>
    <thetext>The fix applied for bug# 5063 also includes the fix for this bug. Please take a look at sml-diff.html attached to bug# 5063.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19059</commentid>
    <comment_count>8</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2008-02-14 19:52:10 +0000</bug_when>
    <thetext>Fix per comment #17 in Bug #5063</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19139</commentid>
    <comment_count>9</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-02-20 02:56:23 +0000</bug_when>
    <thetext>This issue is addressed as a part of the fix to bug# 5063.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>