To convert a string to lower case or uppercase you can use the XPath 1.0 function translate
:
First define your alphabets for lower case and upper case letters. Note that the position of each pair of characters needs to be the same:
<xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz</xsl:variable>
<xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
Then you can convert to upper case:
<xsl:value-of select="translate($toconvert,$lcletters,$ucletters)"/>
or to lower case
<xsl:value-of select="translate($toconvert,$ucletters,$lcletters)"/>
emp[lower-case(fname)=lower-case($srchStr)]
Or, if you have XPath 1.0 only, you may try using translate like here: http://geekswithblogs.net/TimH/archive/2006/07/06/84229.aspx
Be warned though, the example with translate
would not work on names with accents (like mine :)