[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Problem with case-sensitivity
Subject: Re: [xsl] Problem with case-sensitivity
From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx>
Date: Fri, 01 Oct 2004 11:28:54 +0300
|
Luke Ambrogio wrote:
<>when i use the function:
contains(@name,$name)
it returns true only if even the case are the same
You need to define two variables:
<xsl:variable name="upperCase" select="ABCDEFGHIJKLMNOPQRSTUVWXYZ"/>
<xsl:variable name="lowerCase" select="abcdefghijklmnopqrstuvwxyz"/>
and then use the translate() function to convert @name and $name to the same case before comparing.
hth,
Manos
|