[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem with case-sensitivity

Subject: Re: Problem with case-sensitivity
From: "Werner, Wolfgang" <mail@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Oct 2004 11:24:40 +0200
abcdefghiklmnopqrstuvwxyz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Luke,

you could translate both values to uppercase using the translate
function before comparing them:
<xsl:variable name='s1'
select='translate(@name,"abcdefghiklmnopqrstuvwxyz","ABCDEFGHIKLMNOPQRSTUVWXYZ")'/>
<xsl:variable name='s2'
select='translate($name,"abcdefghiklmnopqrstuvwxyz","ABCDEFGHIKLMNOPQRSTUVWXYZ")'/>

<xsl:if test='contains($s1,$s2)'>
...
</xsl:if>

hth,
Wolfgang


Luke Ambrogio wrote: | Dear all, | | when i use the function: | | contains(@name,$name) | | it returns true only if even the case are the same, how do i go about making | it work even when the case is different i.e if @name = luke and $name = Luke | returns true? | | thanks in advance, regards | Luke Ambrogio | | | |

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBXSJYqjaicDyx8o8RAhayAJ9zM6AgT29o7jaiS3gXFFGRCa2cHQCfeVBR
8a9Ocg7m8HF8fa2vptAUy1w=
=rpl8
-----END PGP SIGNATURE-----

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.