Built-in Operator Precedence
Beyond My Dear Aunt Sally
- XPath 2.0 Operators have built-in precedence
- If precedence is equal proceed left-to-right
- (x + y - z) is really
-
(x + y) - z
- Higher items (in the chart on the next slide) bind before lower items
- x or y and z is really
-
x or (y and z)
- Items of a lower precedence cannot be contained by operators of
a higher precedence