xsl-list
[Top] [All Lists]

Re: Problem with case-sensitivity

2004-10-01 01:28:54
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







<Prev in Thread] Current Thread [Next in Thread>