class Nokogiri::CSS::XPathVisitor

def css_class_standard(hay, needle)

use only ordinary xpath functions
def css_class_standard(hay, needle)
  "contains(concat(' ',normalize-space(#{hay}),' '),' #{needle} ')"
end