Recueil de poèmes

Soit des poèmes écrits en XML sur le modèle suivant :

1
<poeme titre="The Stone Troll" auteur="JRR Tolkien">
2
<strophe>
3
  <vers>Troll sat alone on his seat of stone,</vers>
4
  <vers>And munched and mumbled a bare old bone;</vers>
5
  <vers>For many a year he had gnawed it near,</vers>
6
  <vers>For meat was hard to come by.</vers>
7
  <vers>Done by! Gum by!</vers>
8
  <vers>In a cave in the hills he dwelt alone,</vers>
9
  <vers>And meat was hard to come by.</vers>
10
</strophe>
11
<strophe>
12
  <vers>Up came Tom with his big boots on.</vers>
13
  <vers>Said he to Troll: 'Pray, what is yon?</vers>
14
  <vers>For it looks like the shin o' my nuncle Tim.</vers>
15
  <vers>As should be a-lyin' in the graveyard.</vers>
16
  <vers>Caveyard! Paveyard!</vers>
17
  <vers>This many a year has Tim been gone,</vers>
18
  <vers>And I thought he were lyin' in the graveyard.</vers>
19
</strophe>
20
</poeme>

Soit des recueils de poèmes écrits en XML sur le modèle suivant :

1
<recueil>
2
    <poeme url='./poeme1.xml'/>
3
    <poeme url='./poeme2.xml'/>
4
</recueil>

Question

Écrire une XSLT qui transforme un recueil et ses poèmes en une unique page HTML en sortie, implémentant une opération de transclusion.

Indice

On utilisera la fonction document().