Bonjour à tous, je cherche à trier un doc xml via un xsl (original non ?)

voici le type de doc :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<arbre date="4/24/2009 9:11:20 AM" url="represeau" info1="ceci est une info" info2="ceci est une info" >
    <rep id="rep1" param1="vrai" quantite="1">
        <rep id="1stRep" param1="vrai" quantite="1">
            <noeud1 id="ddddd" />
            <personne id="toto3"/>
        </rep>
        <rep id="3rdRep" param1="vrai" quantite="1">
            <noeud1 id="ddddsdfsfd" />
            <personne id="toto3"/>
        </rep>
        <rep id="2ndRep" param1="vrai" quantite="1">
            <noeud1 id="dsdfsfdfdddd" />
            <noeud1 id="dsdfsfsdfdfdddd" />
            <personne id="toto3"/>
        </rep>
    </rep>
    <rep id="rep3" param1="vrai" quantite="1">
        <rep id="2ndRep" param1="vrai" quantite="1">
            <personne id="toto3"/>
        </rep>
        <rep id="1stRep" param1="vrai" quantite="1">
            <personne id="toto2"/>
            <personne id="toto3"/>
        </rep>
    </rep>
       <rep id="rep1" param1="vrai" quantite="1">
        <rep id="2ndRep" param1="vrai" quantite="1">
            <noeud1 id="dsdfsfdfdddd" />
            <personne id="toto3"/>
        </rep>
        <rep id="1stRep" param1="vrai" quantite="1">
            <noeud1 id="ddddd" />
            <personne id="toto3"/>
        </rep>
    </rep>
</arbre>
dedant, je voudrais trier les rep par id, de facon recursive (rep dans rep...)

en gros, je voudrais obtenir
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<arbre>
  <rep id=1>
      <rep id=11>
           .....
      </rep>
      <rep id=12>
           .....
      </rep>
  </rep>
  <rep id=2>
      <rep id=21>
           .....
      </rep>
      <rep id=22>
           .....
      </rep>
  </rep>
</arbre>

pouvez vous m'aider ?
merci d'avance
Nicolas