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:
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Then you can convert to upper case:
or to lower case