# saxon:eval()

eval(stored-expression)

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 static context for the expression includes all the in-scope namespaces, types, and functions from the calling environment. It does not include any variables from the calling environment. The base URI and default function namespace are inherited from the calling environment.

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.

Expand | Up Next