W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2016

[Bug 29382] New: [XP31] semantics of an 'empty' FunctionBody

From: <bugzilla@jessica.w3.org>
Date: Tue, 19 Jan 2016 17:26:10 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29382-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29382

            Bug ID: 29382
           Summary: [XP31] semantics of an 'empty' FunctionBody
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XPath 3.1
          Assignee: jonathan.robie@gmail.com
          Reporter: jmdyck@ibiblio.org
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

In XQuery 3.1 & XPath 3.1, an InlineFunctionExpr has a FunctionBody, which is
an EnclosedExpr, which can be just "{ }".

In XQuery, the semantics of this are addressed:
    [Definition: In an enclosed expression, the optional expression enclosed
    in curly braces is called the content expression.] If the content
    expression is omitted, the value of the content expression is ().

However, these  sentences occur in 3.9 Node Constructors, which does not exist
in the XPath spec, and so the semantics are not defined in the XPath spec.

(Moreover, in the XQuery spec, it's odd that those sentences are in 3.9 Node
Constructors, since EnclosedExprs are not specific to node constructors.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 19 January 2016 17:26:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:57 UTC