Altova MapForce 2024 Enterprise Edition

Returns the part of string arg1 that occurs before the string arg2.

mf-func-xpath2-substring-before

 

Languages

XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Type

Description

arg1

xs:string

The input string (that is, the "haystack").

arg2

xs:string

The substring (that is, the "needle").

collation

xs:string

Specifies the collation to use for string comparison. This input may originate from the output of the default-collation function or it may be a collation such as http://www.w3.org/2005/xpath-functions/collation/html-ascii-case-insensitive.

 

Example

If arg1 is "MapForce", arg2 is "Force", and collation is default-collation, the function returns "Map".

© 2018-2024 Altova GmbH