/ Published in: XSLT
Generate the first character then show the remaining string.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- generate first character --> <xsl:value-of select="concat( translate( substring( $MY-STRING, 1, 1 ),$lowerCase, $upperCase ), substring( @type, 2, string-length( $MY-STRING)))" /> <!-- generate remaining string --> <xsl:value-of select="substring($MY-STRING,2,string-length($MY-STRING)-1)" />