Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

RangeExpr

Construct a sequence of consecutive integers.


Syntax

RangeExpr

graphics/RangeExpr.png

Expr Expr

Top of page

Description

A RangeExpr is used to construct a sequence of consecutive integers. Each of the two operand expressions is expected to be of type xs:integer. If either operand is an empty sequence, or if the first integer operand is larger than the second, the result of the range expression is an empty sequence. Otherwise, the result is a sequence beginning with the first integer operand and all consecutive integers including the second integer operand.

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page