<?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>6191</bug_id>
          
          <creation_ts>2008-10-30 00:44:57 +0000</creation_ts>
          <short_desc>ambiguity in rule binding semantics</short_desc>
          <delta_ts>2008-11-13 07:23:05 +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>LC</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Arwe">johnarwe</reporter>
          <assigned_to name="Virginia Smith">virginia.smith</assigned_to>
          <cc>virginia.smith</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>22288</commentid>
    <comment_count>0</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-10-30 00:44:57 +0000</bug_when>
    <thetext>One of the COSMOS JUnits that fails, http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cosmos/tests/resource-modeling/org.eclipse.cosmos.rm.validation.tests/src/test-resources/others/rulesWithMultiplePattern.xml?root=Technology_Project&amp;view=markup , appears to have fallen into a hole in the current SML spec.

The test case defines a single rule binding 
   &lt;ruleBinding&gt;
    	&lt;documentAlias&gt;/Units/DatabaseServer&lt;/documentAlias&gt;
    	&lt;ruleAlias&gt;DatabaseServerRules&lt;/ruleAlias&gt;
    &lt;/ruleBinding&gt;
and an instances/document member with an alias of 
      &lt;docinfo&gt;
        &lt;aliases&gt;
          &lt;alias&gt;http://interop.serviceml.org/Units/DatabaseServer&lt;/alias&gt;
        &lt;/aliases&gt;
      &lt;/docinfo&gt;
and a model base URI of
    &lt;baseURI&gt;
		http://interop.serviceml.org
    &lt;/baseURI&gt;

The test case fails because it expects to find one rule document bound to the instance document whose alias is given above, and the code says zero are bound.

If one assumes that each &lt;documentAlias&gt; contains a URI reference (sic), then the test case&apos;s assumption about expected results would be consistent.

If on the other hand one assumes that SML&apos;s use of the term &quot;URI prefix&quot; in 5.4.2 was intended to communicate that each &lt;documentAlias&gt; contains an &quot;absolute URI&quot; prefix, then its value should not be transformed to absolute.

The same issue exists for &lt;ruleAlias&gt;

I believe the relevant sections are:
5.3.1 http://www.w3.org/TR/sml-if/#URI_equality
5.3.4 http://www.w3.org/TR/sml-if/#URI_Processing
5.4.1 http://www.w3.org/TR/sml-if/#URI_prefix_matching 
5.4.2 http://www.w3.org/TR/sml-if/#Rule_Bindings_Definition

If nothing else, this test case makes it clear that we need to clarify how these URIs (or URI references, if those are allowed) are treated in the spec.  We spent quite a bit of time scrutinizing document aliases, but relatively little on these.

Note that 5.3.4 does not list &lt;ruleAlias&gt; or &lt;documentAlias&gt; contents as &quot;URIs subject to SML-IF URI processing&quot;, the usual code word for &quot;it&apos;s an alias&quot;, one of the implication of which -is- that relative references are allowed.  If the intent is that relative references are allowed in this context, we likely need to amend the rules on when a base URI is required in SML-IF as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22377</commentid>
    <comment_count>1</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-11-06 19:56:09 +0000</bug_when>
    <thetext>11/6 telecon agreed on the following revision.

smlif 5.4.2, betw existing parag 2 and 3, add: 

Note: Since the URI prefixes specified as ruleAlias and documentAlias elements are aliases, they are subject to all of the processing for aliases as described in [5.3.3].  For example, if they are relative references then they would be transformed to absolute URIs before comparison.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22423</commentid>
    <comment_count>2</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2008-11-13 07:23:05 +0000</bug_when>
    <thetext>Fixed per comment #1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>