In xslt 1.0, there are no functions to convert to uppercase or lowercase. Instead, do the following:
If required in many places:
Declare these two xsl variables (this should make xslt more readable)
<xsl:variable name="up" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> <xsl:variable name="lo" select="'abcdefghijklmnopqrstuvwxyz'"/>
And use them in your translation function to change the case
<xsl:value-of select="translate(@name,$lo,$up)"/>
If you need to use it in only one place, you do not need to declare variables
<xsl:value-of select="translate(@name,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
Rashmi Pandit Aug 04 '09 at 8:27 2009-08-04 08:27
source share