SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
The XPath API
Standards Conformance
Extensibility
Saxon Extensions
| Introduction
| EXSLT Extensions
| Extension attributes (XSLT only)
| Additional serialization parameters
» | Extension functions
| Extension instructions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
XSLT Patterns

# saxon:eval()

eval(stored-expression [, params...])

This function returns the result of evaluating the supplied stored expression. A stored expression may be obtained as the result of calling the saxon:expression function.

The stored expression is evaluated in the current dynamic context, that is, the context node is the current node, and the context position and context size are the same as the result of calling position() or last() respectively.

The second and subsequent arguments to `saxon:eval` supply values for the variables `$p1`, `$p2`, etc within the stored expression. For details see saxon:expression.

Next