# File test/xpath_test.rb, line 263
 def test_axe_ancestor
		doc = REXML::Document.new "
		<a>
			<b id='1'>
				<c>
					<b id='2'>
						<d/>
					</b>
				</c>
			</b>
		</a>"

		d = XPath.first( doc, "//d" )
		assert_equal "d", d.name
		b = each_test( d, "ancestor::b", 2 ) { |el|
			assert((1..2) === el.attributes['id'].to_i, 
				"Expected #{el.attributes['id']} to be either 1 or 2"
			) 
		}
	end