[Bug 14237] New: [XPath30] editorial: 3.2.2: "PrimaryExpr"

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14237

           Summary: [XPath30] editorial: 3.2.2: "PrimaryExpr"
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XPath 3.0
        AssignedTo: jonathan.robie@gmail.com
        ReportedBy: jmdyck@ibiblio.org
         QAContact: public-qt-comments@w3.org


XPath30 and XQuery30 section 3.2.2 "Dynamic Function Invocation" 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 "PrimaryExpr" are problematic. Consider the section's
second example:
    $f[2]("Hi there")
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 "PrimaryExpr" to "base expression", in parallel with 3.2.1
"Filter Expressions".

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 22 September 2011 07:30:52 UTC