Steve Ball
$Id: string.html,v 1.2 2001/04/04 06:45:16 balls Exp $
Copyright © 2001 by Steve Ball
str:to-upper
Name
str:to-upper — Make string uppercase
Synopsis
<xsl:template name="str:to-upper">
<xsl:param name="text"/>
...
</xsl:template>
Converts all lowercase letters to uppercase.
Parameters
- text
-
The string to be converted
Returns
Returns string with all uppercase letters.
str:to-lower
Name
str:to-lower — Make string lowercase
Synopsis
<xsl:template name="str:to-lower">
<xsl:param name="text"/>
...
</xsl:template>
Converts all uppercase letters to lowercase.
Parameters
- text
-
The string to be converted
Returns
Returns string with all lowercase letters.
str:capitalise
Name
str:capitalise — Capitalise string
Synopsis
<xsl:template name="str:capitalise">
<xsl:param name="text"/>
...
</xsl:template>
Converts first character of string to an uppercase letter. All remaining characters are converted to lowercase.
Parameters
- text
-
The string to be capitalised
Returns
Returns string with first character uppcase and all remaining characters lowercase.
str:subst
Name
str:subst — String substitution
Synopsis
<xsl:template name="str:subst">
<xsl:param name="text"/>
<xsl:param name="replace"/>
<xsl:param name="with"/>
...
</xsl:template>
Substitute 'replace' for 'with' in string 'text'.
Parameters
- text
-
The string upon which to perform substitution
- replace
-
The string to substitute
- with
-
The string to be substituted