mbklein opened this pull request May 24, 2011 Default custom XPath function handler I've created an easy-to-decorate handler for custom XPath functions, and created code so that Node will use it in the absence of another handler: Nokogiri::XML::XPathFunctions.define(:regex) do |node_set, regex| node_set.find_all { |node| node['some_attribute'] =~ /#{regex}/ } end # regex() is now available by defa