I needed a query at Sitecore to select the descendants belonging to a template, of the ancestor belonging to another template query:./ancestor::*[@@templatekey='templ 1']//*[@@templatekey='templ 2']