http://onionworks.net/2004/renderengine/utility

endsWith (text : string, endsWith : string) : boolean

The method “endsWith” checks whether a character string ends with a certain character sequence. “text” is the character string to be checked here. The parameter “endsWith” is the character sequence that is compared with the end. If the strings go together, "true" is returned, otherwise "false".

<xsl:value-of select="util:endsWith('Hallo World', 'World')" />
Check of the rear part of a character string

It is checked whether the rear part of the string "hello world" is identical to the string "world". This is the case, so "true" is therefore returned.