<?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>1742</bug_id>
          
          <creation_ts>2005-07-18 23:48:37 +0000</creation_ts>
          <short_desc>[FS] technical: 5.15 Function Declaration: adding FunctionDecl to statEnv</short_desc>
          <delta_ts>2005-09-06 13:14:20 +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>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Jerome Simeon">simeon</assigned_to>
          
          
          <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>4854</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-18 23:48:37 +0000</bug_when>
    <thetext>5.15 Function Declaration

SCP / rule 1 / premise 2
&quot;statEnv1 = statEnv + funcType(expanded-QName =&gt; FunctionDecl)&quot;
    statEnv.funcType maps an expanded-QName to a *set* of function
    *signatures*, not a single FunctionDecl. So you&apos;ll need premises like:

        statEnv |- [[ SequenceType1 ]]_sequencetype = Type1
        ...
        statEnv |- [[ SequenceTypen ]]_sequencetype = Typen
        statEnv |- [[ SequenceTyper ]]_sequencetype = Typer
        Sig = define function QName( Type1, ..., Typen ) return Typer
        statEnv.funcType(expanded-QName) = {Sig1, ..., Sigk}
        statEnv1 = statEnv + funcType(expanded-QName =&gt; {Sig1, ..., Sigk, Sig})

    (Note that you can drop the set-related stuff if you change funcType
    to map to a single signature. See Bug 1580.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5254</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-27 15:24:04 +0000</bug_when>
    <thetext>The proposed resolution to Bug 1580 in:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1580
addresses this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5611</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-08-31 15:30:07 +0000</bug_when>
    <thetext>The XML Query and XSLT WGs have accepted this comment, with the fix proposed in
#Bug 1580.
- Jerome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>