You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by White Shadow <ak...@hotmail.com> on 2002/05/10 20:40:55 UTC
Xpath problem with contain function
Hello Everyone
Thanks to Mark, I have been succeeded in implementing case-insensitive query
string for my dbxml project. I am now facing a problem with contain function
which I am using so that if a part of name is given for query, it can return
me that as a valid result.
The query string I am using is:
xpath = "//person[contains(translate(
Name,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')=
translate('"+ strName +
"','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'))]";
I want that for a name Mark J. Stang , if the user queries for either Mark
or Stang or J, it can return the Result for Mark J. Stang
The above xpath string is not working. Can someone point out whats teh
mistake in it?
Thanks
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com