# File test/xpath_test.rb, line 349 def test_complex next_f = XPath.first( @@doc, "a/e/f[@id='11']/following-sibling::*" ) assert_equal 12, next_f.attributes['id'].to_i prev_f = XPath.first( @@doc, "a/e/f[@id='11']/preceding-sibling::*" ) assert_equal 10, prev_f.attributes['id'].to_i each_test( @@doc, "descendant-or-self::*[@x='y']", 2 ) end