Location paths
A location path is a formulation which allows the access and selection of certain nodes or node sets within a XML document. Location paths
can have a…
Filtering with predicates
With the help of XPath expressions, each requested node can be selected within a XML document. In order to be able to define result sets of nodes and with that to be…
Expressions on sequences
Alternatively to path expressions, expressions on sequences are often used in order to realise a filtering.
SignatureDescription fn:position() as xs:integer provides the…
The general FLWOR structure
The peculiarity of XQuery in comparison to simple path expressions as being introduced in XPath 1.0 is that XML documents are no longer filtered…
FLWOR expressions
Each "meaningful" XQuery instruction is based on a FLWOR expression which represents, similar to the SELECT-FROM-WHERE in SQL, the base for queries…
Let and For clause
Let and for clauses enable the binding of variables to results of any XQuery expressions, whereby, as shown in the further course, the results of path expressions are…
The predicate evaluation
The following pages are from the German book "XQuery – Grundlagen und fortgeschrittene Methoden" (XQuery – basics and advanced methods). The…
Binding of several variables
In a FLWOR expression it is possible to bind simultaneously several variables by a let or a for instruction.
let $x := ..., $y := ... for $x…
Explicit type testing
As a further property of the for and let clauses, there is the possibility to perform a type testing via an explicit type declaration by means of the additional key…
Where clause
Analogous to the SELECT-FROM-WHERE block in a SQL query, the where clause of XQuery enables the filtering of the data streams. If the expression of a where…