Return to Snippet

Revision: 16400
at August 3, 2009 07:15 by Meander365


Updated Code
<!-- 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)" />

Revision: 16399
at August 3, 2009 07:14 by Meander365


Initial Code
<!-- 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)" />

Initial URL

                                

Initial Description
Generate the first character then show the remaining string.

Initial Title
First Character to Upper Case

Initial Tags

                                

Initial Language
XSLT