I am using Nokogiri 1.3.3 with Ruby 1.8.7 I am trying to match the content of a tag as described in this SO question:
nodeset.xpath("entry/index[. = '#{index.to_s}']/../categories")
Nokogiri raises an exception complaining about the '.' after the bracket. When I replace the '.' with text() it then complains about the second period. Is this me or Nokogiri? How do I fix it