All Implemented Interfaces:
Query, SimpleQuery

public class XQuery extends QueryTemplate implements SimpleQuery
A SimpleQuery over an XQuery template.

The template is defined as follows (cf. template):

<ns/> for $resource in <range/><vars/> where <cond def="$result"/> return <result def="$result"/>

where:

  • range stands for the path to the data ranged over by the $result variable. This parameter is typically bound at query-creation time (cf. XQuery(Map).
  • ns, vars, cond and result stand for, respectively, the declarations of namespace prefixes, the declarations of auxiliary variables, the conditions, and the result expression of the query. These parameters should be bound through the SimpleQuery API.
Author:
Fabio Simeoni