So this is what I ended up coming up with, with the help of the above response. query:./ancestor-or-self::*[@@templateid='{AD55B888-20A7-43A3-B487-6FE5658F9DAC}']//*[@@templatename='Country'] So Richard thanks for helping me in the right direction.