XSLT » XPath Core Functions » substring-before

Syntax:
string = substring-before(string, substring)

The substring-before function returns a portion out of the string specified in the string argument that occurs before the substring specified in the substring argument.