- Parsing yields an Expression tree.
- Representation is language-independent.
- XQuery operations are represented by calls to built-in functions.
- Control structures like for are represented a
mapping function that applies a compiler-generated function
on each item of a sequence.
- Analysis and optimization are performed on Expressions.
- Hooks for special optimizations and inlining of built-in functions.