String Functions

string string( object)Returns the string representation of the object argument.
string string()Returns a string value representation of the context node.
string concat( string, string, string*)Returns the concatenation of its arguments.
boolean starts-with( string, string)Returns true if the first argument string starts with the second argument string.
boolean contains( string, string)Returns true if the first argument string contains the second argument string.
string substring-before( string, string)Returns the substring of the first argument string that comes before the first occurrence of the second argument.
string substring-after( string, string)Returns the substring of the first argument string that comes after the first occurrence of the second argument.
string substring( string, number, number)Returns the substring of the first argument starting at the position specified by the second argument and the length specified by the third argument.
string substring( string, number)Returns the substring of the first argument from the position specified by the second argument.
number string-length( string)Returns the length of the string specified by the argument.
number string-length()Returns the length of the string specified by the context node.
string normalize-space( string?)Returns a white-space normalized string specified by the argument.
string normalize-space()Returns a white-space normalized string specified by the context-node.
string translate( string, string, string)Replaces characters in the string specified by the second argument with characters specified by the third argument.