# File rexml/xpath_parser.rb, line 40 def LocationPath path, nodeset #puts "LocationPath( '#{path}', #{puta nodeset} )" if DEBUG case path when /^\/ # '//' RelativeLocationPath path = "descendant-or-self::#$'" nodeset = [nodeset[0].root.parent] when /^\$/ return ["", [nodeset[0].root.parent]] when /^\/u # '/' RelativeLocationPath? path = $' nodeset = [nodeset[0].root.parent] end return RelativeLocationPath( path, nodeset ) end