<?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>1715</bug_id>
          
          <creation_ts>2005-07-18 19:56:42 +0000</creation_ts>
          <short_desc>[FS] editorial: 5.11 Module Import</short_desc>
          <delta_ts>2007-09-21 01:06:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>need to create erratum and edit 1.1 doc (2006-04-17)</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Michael Dyck">jmdyck</assigned_to>
          <cc>per</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4826</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-18 19:56:42 +0000</bug_when>
    <thetext>5.11 Module Import

SCP / rule 1 / premise (2|3)
&quot;statEnv1 + varType(fs:local-variables(...))&quot;
&quot;statEnv2 + localFunc(fs:local-functions(...))&quot;
    This syntax is unspecified.

SCP / rule 1 / premise 3
&quot;statEnv2 + localFunc(...)&quot;
    s/localFunc/funcType/

SCP / rule 1 / conclusion
&quot;import module (namespace NCName =)? ...&quot;
    If NCName appears, it should be bound to the target namespace in
    statEnv.namespace.

Notation 2
&quot;The rules below depend on the following auxilliary judgments.&quot;
    Presumably, this should be followed by declarations of the
    &quot;=&gt;import_variables&quot; and &quot;=&gt;import_functions&quot; judgment forms.

    Such a Notation section should precede the DCP section though.

&quot;This judgment adds each ...&quot; (twice)
    s/judgment/rule/

DCP / rule 2
dynEnv2 ; URI |- (expanded-QName2(Type2,1, ..., Type2,n)), ···,&quot;
                 (expanded-QNamek(Typek,1, ..., Typek,n)) =&gt; ...
    This requires that all functions imported from a module have the same
    number of arguments (n), which is not what you want.

    You could fix this with subscripts-on-subscripts, but that would make
    the rule harder to read and understand. The better route, which
    actually makes the rule *easier* to read and understand, is to
    introduce a Formal symbol for (this kind of) function signature.

&quot;to the input dynamic context.&quot;
    &quot;input&quot;? Maybe s/input/importing/

DCP / rule 3 / premise (2|3)
&quot;fs:local-foo(statEnv2, URILiteral1)&quot;
    Delete the subscript 1.

&quot;URILiteral ; dynEnvi |-&quot;
    Change to &quot;dynEnvi ; URILiteral |-&quot; to match previous rules.

dynEnv2, statEnv2
    It&apos;s not clear why dynEnv2 isn&apos;t used, or where statEnv2 comes from.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5554</commentid>
    <comment_count>1</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2005-08-29 03:11:51 +0000</bug_when>
    <thetext>*** Bug 1900 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9278</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-04-17 04:58:46 +0000</bug_when>
    <thetext>Fixed as suggested when possible, since some of those comments were taken over by events.
- Jerome
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11503</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-09-08 02:06:33 +0000</bug_when>
    <thetext>The 2006-06 CR does not have fixes for some of the items, specifically:

Notation 3
&quot;The rules below depend on the following auxilliary judgments.&quot;
    But no auxiliary judgments are set out.

Notation 3 / rule (2|4)
    This requires that all functions imported from a module have the same
    number of arguments (n), which is not what you want.
    (This comment dates back to April 2004.)

Notation 4 / rule 2
    It&apos;s not clear why dynEnv2 isn&apos;t used, or where statEnv2 comes from.

    (And by the way, premises 1 and 2 are identical.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16745</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-09-21 01:06:35 +0000</bug_when>
    <thetext>The second item of Comment #3 has been resolved by the fix for FS erratum E006.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>