Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

StepQualifiers

Restrict item sequence to those matching one or more predicates.


Syntax

StepQualifiers

graphics/StepQualifiers.png

Expr

Top of page

Description

In a step expression, StepQualifiers can be used to restrict the current sequence of items with the help of one or more predicate expressions each of which is enclosed in brackets. If you specify more than one step qualifier, their order has no effect on the result except if you use numeric predicates.

The predicate expression can be either a Boolean or a numeric expression. A numeric predicate [n] is short for [position()=n] which is true for all nodes that are the nth child element in the input node sequence. If the type of the predicate expression is not numeric, then it is treated as a Boolean expression.

Top of page

Examples

Top of page

Related Syntax Construct

The following construct(s) refer to this construct:

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

StepExpr

Top of page