| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
<html> |
| 9 |
<head> |
| 10 |
<title>Package overview: net.sf.saxon.expr.flwor</title> |
| 11 |
|
| 12 |
</head> |
| 13 |
<body> |
| 14 |
<p>This package contains classes responsible for evaluation of FLWOR expressions.</p> |
| 15 |
|
| 16 |
<p>FLWOR expressions are implemented as a pipeline of clauses, much as described in the specification. |
| 17 |
The pipeline can be evaluated in push or pull mode: in push mode, the supplier of tuples activates the consumer |
| 18 |
of tuples when a tuple is ready to be processed, while in pull mode, the consumer of tuples calls the supplier |
| 19 |
to request the next tuple. In both cases the "tuple" is not actually passed as an argument or result of this call, |
| 20 |
but is represented by the state of local variables in the XPathContext stack on completion of the call. The only |
| 21 |
time tuples are represented as real objects is when the processing is not pipelined, for example when tuples need |
| 22 |
to be sorted or grouped.</p> |
| 23 |
|
| 24 |
<p>Simple "for" and "let" expressions do not use this mechanism: instead, they are compiled to a |
| 25 |
{@link net.sf.saxon.expr.ForExpression} or {@link net.sf.saxon.expr.LetExpression}.</p> |
| 26 |
|
| 27 |
|
| 28 |
</body> |
| 29 |
</html> |
| 30 |
|
| 31 |
|