<?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>14236</bug_id>
          
          <creation_ts>2011-09-22 05:56:31 +0000</creation_ts>
          <short_desc>[XPath30] editorial: 3.1.7: &quot;function declaration&quot;</short_desc>
          <delta_ts>2013-11-05 00:30:38 +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>XPath 3.0</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</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="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>andrew.eisenberg</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>57140</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-09-22 05:56:31 +0000</bug_when>
    <thetext>In XPath30 and XQuery30 section 3.1.7 &quot;Inline Functions&quot;,
there are 3 references to &quot;a function declaration&quot;.
Change each to &quot;an inline function expression&quot;.

Similarly, in Appendix F &quot;Error Conditions&quot;, the blurb for err:XQST0039 says:
    It is a static error for a function declaration to have
    more than one parameter with the same name.

In the XPath spec, &quot;a function declaration&quot; should be &quot;an inline function expression&quot;.
In the XQuery spec, it should be &quot;a function declaration or inline function expression&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60163</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-11-18 23:13:23 +0000</bug_when>
    <thetext>*** Bug 14365 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60165</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-11-19 01:16:13 +0000</bug_when>
    <thetext>Nice catch. The fix will show up in the next build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60334</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-11-22 06:41:34 +0000</bug_when>
    <thetext>Re 3.1.7:

XPath now says
    a inline function expression
(should be &quot;an&quot;).

XQuery says:
    a function declaration or inline function expression
which is true, but the mention of function declaration is unnecessary here. Section 4.18 already states these rules for function declarations.

---

Re Appendix F:
There&apos;s been no change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61408</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-12-10 19:48:48 +0000</bug_when>
    <thetext>*** Bug 15071 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61424</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-12-11 15:07:44 +0000</bug_when>
    <thetext>Fixed now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61498</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-12-13 18:30:18 +0000</bug_when>
    <thetext>Section 3.1.7 has been fixed. However...

In appendix F, you changed
    a function declaration
to
    an inline function expression

but the error covers both constructs, so you need to change it to:
    &lt;phrase role=&quot;xquery&quot;&gt;a function declaration or&lt;/phrase&gt;
    an inline function expression

or even something like:
    &lt;phrase role=&quot;xquery&quot;&gt;a function declaration or&lt;/phrase&gt;
    &lt;phrase diff=&quot;add&gt;an inline function expression&lt;/phrase&gt;
(Strictly speaking, the &quot;or&quot; should be part of the diff-add,
but capturing that gets messy.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75418</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-10-05 21:57:27 +0000</bug_when>
    <thetext>I believe this is fixed now:

err:XQST0039

It is a static error for an inline function expression to have more than one parameter with the same name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75663</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2012-10-09 07:42:22 +0000</bug_when>
    <thetext>The Appendix F blurb for err:XQST0039 has not changed since comment 5.
Therefore, comment 6 still applies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94969</commentid>
    <comment_count>9</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-10-19 17:45:49 +0000</bug_when>
    <thetext>Fixed in source. Will show in next HTML build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95778</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2013-11-05 00:30:38 +0000</bug_when>
    <thetext>Yup. (Fourth time&apos;s the charm.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>