Changing Case in an XSL

Author:cwilson
Last Updated:October 04, 2017 11:03 AM

This will convert text to entirely uppercase:

<xsl:value-of select="translate(., 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />

This will convert text to entirely lowercase:

<xsl:value-of select="translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')" />

top