Hello everyone,
I'm trying to convert a string to uppercase before using it in a select
statement using XSLT 1.0, and for now I'm using translate() as follows:
<xsl:variable name="pClubCaps" select="translate($pClub,
'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSSTUVWXYZ')" />
where $pClub is a parameter passed to the stylesheet from a JSP page. Of
course, converting to lowercase would simply require the second and third
parameters of translate() to be switched.
I was wondering if there's a nicer way of converting strings to upper or
lower case, rather than using translate()?
Thanks
Gareth
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--