W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2009

[Bug 5876] [XPath] Is it an error for an operator to be contained in parentheses?

From: <bugzilla@wiggum.w3.org>
Date: Thu, 12 Feb 2009 15:35:11 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LXdap-00023R-Q9@wiggum.w3.org>

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





--- Comment #3 from Michael Kay <mike@saxonica.com>  2009-02-12 15:35:11 ---
I was asked at the XSL WG meeting on 5 Feb to produce a wording proposal to
resolve this.

Proposal:

For XPath and XQuery Appendix A.4:

(1) delete the sentence "Operators that have a lower precedence number cannot
be contained by operators with a higher precedence number."

(2) from the row labelled 19, delete the round and curly braces.

(3) Add after the table: "Note: parentheses can be used to override the
operator precedence in the usual way. Square brackets in an expression such as
A[B] serve two roles: they act as an operator causing B to be evaluated once
for each item in the value of A, and they act as parentheses enclosing the
expression B.
<XQuery-only>Curly braces in an expression such as validate{E} or ordered{E}
perform a similar bracketing role to the parentheses in a function call, but
with the difference in most cases that E is an Expr rather than ExprSingle,
meaning that it can use the comma operator.</XQuery-only>


-- 
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, 12 February 2009 15:35:20 UTC

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