Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

LetClause

Bind variables by evaluating expressions.


Syntax

LetClause

graphics/LetClause.png

Variable Expr

Top of page

Description

A LetClause is part of FLWOR and FLWU expressions and contains one or more variables that will be related to the expression that follows. The let clause binds directly each variable to the result of evaluating the expression. If there are for clauses, the variable bindings are added to the tuples created in the for clauses. Otherwise a single tuple with all variable bindings is created. The return clause will be invoked once for each generated tuple that is retained after passing the optional where clause.

Top of page

Example

See FLWORExpr for examples.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

This construct is also related to the following construct(s):

ForClause WhereClause

Top of page