This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Changing case using translate()
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Changing case using translate()
- From: "Andrew Welch" <andrew at thebristoldirectory dot com>
- Date: Thu, 15 Feb 2001 13:41:53 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
As I understand it, case conversion is done using
translate(xxxx,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ)
Im trying to incorporate it into the following line of code, to allow
case-independant searching:
<xsl:for-each select="TBD/business[contains(*[local-name() = $param1],
$param2)]">
By converting both params to uppercase it should allow, for example,
'rising' to match 'Rising Sun'.
Where should it go?? All my attempts so far seem to make no difference
whatsoever...
Thanks
Andrew Welch
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list