# File rexml/xpath_parser.rb, line 421 def axe_helper path, nodeset # NodeTest returns a true/false 1-1 map of nodeset #puts "axe_helper with nodeset #{puta nodeset}" if DEBUG path, node_test = NodeTest( path, nodeset ) #puts "NodeTest returned '#{path}' and #{puta node_test}" if DEBUG #puts "Nodeset is now #{puta nodeset}" if DEBUG join( nodeset, node_test ) {|a,o,b| a if b} #puts "After join, nodeset is #{puta nodeset}" if DEBUG nodeset.compact! # Predicate returns a true/false 1-1 map of nodeset if path[0] == ?[ path, predicate = Predicate( path, nodeset ) #puts "PREDICATE RETURNED '#{path}' and #{puta predicate}" if DEBUG #puts "Joining with #{puta nodeset}" if DEBUG join( nodeset, predicate ) {|a,o,b| a if b} nodeset.compact! end #puts "AXE HELPER RETURNING '#{path}'" if DEBUG [path, nodeset] end