pub fn eval_node<N: DomNavigator>(
arena: &AstArena,
id: AstNodeId,
ctx: &mut DynamicContext<'_, N>,
) -> Result<XPathValue<N>, XPathError>Expand description
Evaluate an AST node and return the result.
This function recursively evaluates the AST, dispatching to appropriate
handlers based on node type. The AST must have been bound using bind_node()
before evaluation.
§Arguments
arena- The AST arena containing all nodesid- The ID of the node to evaluatectx- The dynamic context for evaluation
§Returns
Ok(XPathValue)containing the evaluation resultErr(XPathError)if evaluation fails
§Errors
XPDY0002- Context item is undefined when requiredXPST0008- Variable is not bound- Various function-specific errors