Skip to main content

insert_before

Function insert_before 

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

Implements fn:insert-before - inserts items into a sequence.

Returns a new sequence with $inserts inserted before the item at $position. If $position < 1, inserts at the beginning. If $position > length + 1, inserts at the end.