Expr

Basic XQuery expression.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

Expr

graphics/Expr.png

SortExpr OrExpr AndExpr FLWORExpr IfExpr CompExpr AdditiveExpr MultiplicativeExpr RangeExpr UnionExpr IntersectExceptExpr Constructor PathExpr TreatExpr UnaryExpr

Description

An Expr represents a basic XQuery expression and provides several kinds of expressions. Each kind of expression is defined in terms of other expressions (compositionality).

Precedence Order

Operands with a higher precedence number bind more tightly than those with a lower precedence number. Operands listed at the same level are evaluated from left to right.

Precedence Number Syntax Constructs
1 (lowest) SortExpr
2 OrExpr
3 AndExpr
4 CompExpr, FLWORExpr, IfExpr
5 RangeExpr
6 AdditiveExpr
7 MultiplicativeExpr
8 UnionExpr
9 IntersectExceptExpr
10 TreatExpr
11 UnaryExpr
12 (highest) Constructor, PathExpr

Example

See the pages of the various expressions for examples.