starts-with
Returns true if string starts with substr; false otherwise. The returned value is of type xs:boolean. String comparison takes place according to the specified collation.

Languages
XQuery, XSLT 2.0, XSLT 3.0.
Parameters
Name  | Type  | Description  | 
|---|---|---|
string  | xs:string  | The input string (that is, the "haystack").  | 
substr  | 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
The following mapping returns the value true, because the input string "MapForce" begins with the substring "Map", assuming that the default Unicode collation is used.
