>>By the way, note that your template for the <anne> elements can just say
match="anne". You only need to say "/AAA/anne" if you need to
distinguish these from <anne> elements that might be encountered
elsewhere in the document.
.... I had the idea that doing it that way
saved the XSLT processor from having to search through the DOM tree...
Nope. If anything, you've added work, because now the processor has to
check that the <anne> element's parent is an <AAA>.
Select does the search. Match confirms that you've found the ones you're
interested in.