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

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


Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com




--- Comment #2 from Michael Kay <mike@saxonica.com>  2008-07-18 18:12:12 ---
Well, square brackets are a kind of operator, in that e1[e2] performs an
operation, and it's important to know that it binds more tightly than "/", so
that e1/e2[e3] means e1/e2[e3] and not (e1/e2)[e3]. By contrast, () and {} are
not operators, and really don't belong in this table. But if we really want to
spell it out, e1[e2] has a bracketing function as well as being an operator in
its own right.

Other compound operators such as if/then/else aren't even present in the table.

And the sentence "Operators that have a lower precedence number cannot be
contained by operators with a higher precedence number." is certainly pretty
clumsy (I'd go so far as to say it is meaningless). While still informal, I
think it would be much better to say "Unless parentheses are used to change the
order of evaluation, operators with a high precedence number are evaluated
before operators with a lower precedence number".


-- 
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 Friday, 18 July 2008 18:12:47 UTC