Hi,
this Statement works for me, although it is not fast and not nice (Java Syntax):
xPathQuery = this.collection[i] +
"[starts-with(translate(." +
this.field[i] +
", 'ABCDEFGHIJKLMNOPQRSTUVWXYZ�������������'" +
", 'abcdefghijklmnopqrstuvwxyz�������������')" +
", '" +
this.searchFor[i].toLowerCase()+
"')]";
The Result Query looks like this:
/Person[starts-with(translate(./Name,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ�������������',
'abcdefghijklmnopqrstuvwxyz�������������'),'daniela')]
Note that 'daniela' has to be complete lower case in the statement.
"starts-with" can be replaced by "contains"
Christian
-----Urspr�ngliche Nachricht-----
Von: Juergen Niehoff [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 29. Oktober 2003 11:03
An: [email protected]
Betreff: XPath /case sensitiv
Hello,
did anyone know if it is possible to make a XPath-Statement that is not
case sensitiv?
If i am searching for "Daniela" my XPath looks like
".../[contains(../NODE, 'Daniela')]" in some documents there was an
"daniela" and that Docuemnts where not found. I can switch the first
letter to lowercase(or to uppercase) with String-Operations and then my
XPath could by look like "../[cantains(../NODE, 'Daniela') or
contains(../NODE, 'daniela')]" , but this is not a good way.
J�rgen