<?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>14237</bug_id>
          
          <creation_ts>2011-09-22 07:30:49 +0000</creation_ts>
          <short_desc>[XPath30] editorial: 3.2.2: &quot;PrimaryExpr&quot;</short_desc>
          <delta_ts>2011-12-11 19:40:40 +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>All</op_sys>
          <bug_status>RESOLVED</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>
          
          
          <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>57141</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-09-22 07:30:49 +0000</bug_when>
    <thetext>XPath30 and XQuery30 section 3.2.2 &quot;Dynamic Function Invocation&quot; say:

    [Definition: A dynamic function invocation consists of a PrimaryExpr
    that returns the function item and a parenthesized list of zero or
    more arguments (argument expressions or ArgumentPlaceholders).]

    If the PrimaryExpr does not return a sequence consisting of a single
    function item with the same arity as the number of specified arguments,
    a type error is raised [err:XPTY0004].

These two occurrences of &quot;PrimaryExpr&quot; are problematic. Consider the section&apos;s second example:
    $f[2](&quot;Hi there&quot;)
The function item that is invoked is returned by $f[2], which is not a PrimaryExpr. The PrimaryExpr is $f, which does not return a sequence consisting of a single function item.

I suggest we change &quot;PrimaryExpr&quot; to &quot;base expression&quot;, in parallel with 3.2.1 &quot;Filter Expressions&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61432</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-12-11 19:40:40 +0000</bug_when>
    <thetext>I believe this is fixed in the current internal Working Draft.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>