[2.0] Operator Precedence—XQuery 1.0 and XPath 2.0
Here is the precedence of operators in XQuery 1.0 and XPath 2.0, arranged from lowest to highest:
,
(comma)for
,some
,every
,if
or
and
eq
,ne
,lt
,le
,gt
,ge
,=
,!=
,<
,<=
,>
,>=
,is
,<<
,>>
to
+
(addition),–
(subtraction)*
(multiplication),div
,idiv
,mod
union
,|
intersect
,except
instance of
treat as
castable as
cast as
–
(unary minus),+
(unary plus)?
,*
(occurrence indicator),+
(occurrence indicator)/
,//
[ ]
,()
,{ }
Get XSLT, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.