viv:str-to-mixed
convert the specified string to mixed case (initial capitals)
Synopsis
string viv:str-to-mixed (str, all); string str; boolean all;
Description
Convert the UTF-8 string str to mixedcase. If a UTF-8 character does not have any corresponding lower/uppercase character, it is not modified.
Arguments
- str: the string to convert.
- all: if true, all the first letters of each word will be converted to uppercase, if false only the first letter of the string. The default value for this paramater is false.
Returns
the converted string
Example
<xsl:value-of select="viv:str-to-mixed('aBc DEF ω', true())"/>
This example would return the following:
Abc Def Ω