Thread: if test=????
View Single Post
  #9 (permalink)  
Old August 24th, 2006, 06:36 PM
jmirickhai jmirickhai is offline
Registered User
Join Date: Aug 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

No. I do not want the fieldname to not matter as well.
Just need the search strings case not to matter. So if someone searches "bo" they will get back "BOB".

It didnt look like you had changed the statement I had (besides for adding in the stuff to ignore fieldname case)

Here is what I have...
catalog/cd[starts-with(upper-case(*[name() = $searchfield]), upper-case(($searchtext))]

When I try to do the transformation, I get an error. If I remove the upper-case statements it works. So I'm guessing that I am using the upper-case statement incorrectly.

How would I change that statement so that it returns elements whose contents match the searchstring (case shouldnt matter).


Reply With Quote