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

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