Skip to main content

root

Function root 

Source
pub fn root<N: DomNavigator>(
    context: &mut DynamicContext<'_, N>,
    args: Vec<XPathValue<N>>,
) -> Result<XPathValue<N>, XPathError>
Expand description

Implements fn:root - returns the root of the tree containing the node.

If no argument, uses context item.