class Nokogiri::CSS::Parser

def xpath_for(selector, visitor)

Get the xpath for +selector+ using +visitor+
def xpath_for(selector, visitor)
  parse(selector).map do |ast|
    ast.to_xpath(visitor)
  end
end