ancestor-or-self::*//following-sibling::x
<r><x/><y/></r>