pub fn eval_to_bool<I: DocIndexLike>(
expr: &Expr,
idx: &I,
context_node: NodeId,
bindings: &dyn XPathBindings,
) -> Result<bool, XmlError>Expand description
Convenience for callers that just need the boolean value of an
expression evaluated against a fresh context (context node passed
in, position 1 of 1, no libxml2-compat tweaks). Used by the XSD
1.1 assertion evaluator — see crate::xsd.