<?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>4834</bug_id>
          
          <creation_ts>2007-07-05 02:28:59 +0000</creation_ts>
          <short_desc>targetXXX attributes and sml:refType</short_desc>
          <delta_ts>2007-09-05 18:20:30 +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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>SML references</status_whiteboard>
          <keywords>editorial</keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Second draft</target_milestone>
          <dependson>4673</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="Valentina Popescu">popescu</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>15735</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-07-05 02:28:59 +0000</bug_when>
    <thetext>What happens if targetXXX attributes are used with element declarations whose type is not derived from sml:refType?

One answer is to say it&apos;s an error, because targetXXX can only be used on references, and sml:refType is used to indicate whether a type is a reference. Then using targetXXX on other types would have no meaning.

Another answer is to allow such usage. Whether an element instance is a reference or not depends solely on whether it has sml:ref=&quot;true&quot; attribute, which is independent of the schema type. (If the schema type has a reference to sml:ref, or has an attribute wildcard, then the instance can always have such an attribute.) Then a schema author may want to impose targetXXX constraints on such elements even when their types are not derived from refType.

This question arises because of the asymmetry between how instances identify references and how schema identifies them (i.e. sml:ref attribute vs. sml:refType complex type). So another possible to the above question may be to harmonize these 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16360</commentid>
    <comment_count>1</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-09-05 04:58:59 +0000</bug_when>
    <thetext>We have decided to remove sml:refType and taregtXXX constrainst can be defined on any element declarations. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16385</commentid>
    <comment_count>2</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-09-05 18:20:30 +0000</bug_when>
    <thetext>Files changed :

sample-model-source.xsd
sml-source.xsd
sml-source.xml

Changes :
1. Removed sml:refType definition and documentation from schema and spec
2. Updated all samples referring to sml:refType by adding a new type that mirrors the sml:refType definition
3. Replaced all occurences of : &apos;aa must be supported on sml:refType and its derived types&apos; with &apos;aa must be supported on all element declarations&apos;
 </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>