(: Check that "foo" obtained in two ways is identical (other way around) :) collection()//id[.=13]/following-sibling::foo is (collection()//foo)[3]