http://onionworks.net/2004/renderengine/utility
replace (original : string, text : string, replaceWith : string) : string
With the method “replace”, a character sequence in a string can be replaced with another. The parameter “original” transfers the string to be edited. The parameter “text” contains the character string to be replaced by the parameter “replaceWith”.
<xsl:value-of select="util:replace('Dies ist ein Test', 'ein', 'kein')" />
Exchanging character strings in a string
In the example, “ein” is looked for in the string “Dies ist ein Test”. This part is found and replaced with “kein”.
Output: "Die ist kein Test"