ZVON > References > XSLT Reference
Go to standard

XPath function: string substring-before (string, string)

Standard excerpt:

The substring-before function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string. For example, substring-before("1999/04/01","/") returns 1999. Examples (xslt:xml): Overview
77:2

Interactive xlab: [string functions] [xpath] [xsl:value-of] [xsl:template]