Home >Online Product Documentation >Table of Contents >Precedence of Query Operators
Precedence of Query Operators
The precedence of query operators varies for XPath 1.0 and XPath 2.0, as shown in the following tables. In these tables, operators are listed in order of precedence, with highest precedence being first; operators in a given row have the same precedence.
Operation Type
|
XPath Operators
|
---|
Grouping
| |
Filter
| |
Unary minus
| |
Multiplication
| |
Addition
| |
Relational (Comparison)
| |
Union
| |
Negation
| |
Conjunction
| |
Disjunction
| |
Table 95. Query Operator Precedence - XPath 1.0
Operation Type
|
XPath Operators
|
---|
Sequence separator
| |
Conjunction
| |
Type matching
| |
Assertion
| |
Conversion test
| |
Conversion
| |
Relational (Comparison)
| |
Range
| |
Addition
| |
Multiplication
| |
Unary
| |
Union
| |
Select set
| |
Navigation
| |
Filter
| |
Table 96. Query Operator Precedence - XPath 2.0