<?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>1741</bug_id>
          
          <creation_ts>2005-07-18 23:46:50 +0000</creation_ts>
          <short_desc>[FS] editorial: 5.15 Function Declaration</short_desc>
          <delta_ts>2007-01-16 17:40:18 +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>minor</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>4853</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-18 23:46:50 +0000</bug_when>
    <thetext>5.15 Function Declaration

Notation
&quot;Parameters without a declared typed&quot;
    s/typed/type/

Norm / rule (1|2|3|4)
&quot;[[ ParamList? ]]_Param&quot;
    According to the Notation section, []_Param only applies to an
    individual parameter, not the whole list.

Norm / rule (1|2)
&quot;[[ EnclosedExpr ]]_Expr&quot;
    The []_Expr form isn&apos;t defined on EnclosedExprs.
    Rewrite &quot;EnclosedExpr&quot; as &quot;{ Expr }&quot;, and put []_Expr around &quot;Expr&quot;.

5.15 / Norm / rule (2|4)
(return type is not provided)
    For these two rules, it might be simpler for the RHS to be a recursive
    call to []_PrologDecl on a FunctionDecl with the &quot;as item*&quot; inserted.
    Then only rules 1 and 3 have to be concerned with the detailed
    normalization.

Norm / rule 4
&quot;[[ QName ]]&quot;
    Delete square brackets.

5.15 / SCP / para 1
&quot;Because functions are mutually referential&quot;
    s/are/can be/

&quot;This rules also updates&quot;
    s/also/therefore/   (or just delete &quot;also&quot;)

STA
&quot;The static typing rules for function bodies follows normalization ...&quot;
    s/follows/follow/

&quot;The typing rules below constructs a new environment&quot;
    s/rules/rule/

&quot;in which each variable has the given expected type&quot;
    s/variable/parameter/

&quot;the local functions component of the static context&quot;
    s/local functions/function signatures/
    (funcType isn&apos;t just local functions)

&quot;If type checking fails, a static error is raised.&quot;
    s/static/type/, I think. (err:XPTY0004)

DCP / rule 2 / conclusion
&quot;Variable1 as SequenceType1&quot;
&quot;Variablen as SequenceTypen&quot;
    You probably want to change &apos;Variable&apos; to &apos;VarRef&apos;.
(leftover from last year, comment #182)

&quot;when the function is called and is described in ...&quot;
    s/and is/, as/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9225</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-04-13 18:49:55 +0000</bug_when>
    <thetext>Fixed as suggested.
- Jerome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>