Skip to main content

XPathFunction

Type Alias XPathFunction 

Source
pub type XPathFunction = fn(&mut XPathContext, &[XPathValue]) -> Result<XPathValue, String>;
Expand description

XPath extension function signature.

Registered extension functions receive a mutable reference to the current evaluation context and a slice of already-evaluated argument values. They return an XPathValue on success or an error string on failure.