On Feb 11, 7:42=A0pm, "Andrew C." <andrew.c... / gmail.com> wrote: > Can somebody explain or put me to an explanation of how to use > REXML::Functions::translate ? > > I'd like to turn this: group_list.elements["entry[title=3D'#{name}']"] > > . . . into a case insensitive lookup. =A0Do I put the translation into > the XPath in that line? =A0Do I need a separate translation line? > > Thanks, > Andrew This would be the correct XPath: group_list.elements["entry[translate(title, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')=3D'#{name.downcase}']"] but I don't know if REXML can handle it, because it's not fully XPath compliant. I'd use an XPath-compliant parser like Nokogiri if this is an issue. -- Mark.