Skip to main content

substring_before

Function substring_before 

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

fn:substring-before($arg1 as xs:string?, $arg2 as xs:string?) as xs:string fn:substring-before($arg1 as xs:string?, $arg2 as xs:string?, $collation as xs:string) as xs:string

Returns the substring before the first occurrence of the pattern.