Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Problem with case-sensitivity

From: "Werner, Wolfgang" <mail@------------------->
To:
Date: 10/1/2004 1:25:00 PM
-----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-----


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent