Bonjour,
Je ne connais pas XSL et je voudrai transformé le contenu XML suivant :
Comme dans l'exemple :
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 <table><tgroup><tbody> <row> <entry colname="col1" rowsep="0">A</entry> <entry colname="col2" rowsep="0">XX</entry> <entry colname="col3" rowsep="0">AA</entry> <entry colname="col4" rowsep="0">AAA</entry> <entry colname="col5" rowsep="0"><PARA>AAAA</PARA></entry> <entry colname="col6" rowsep="0">TITRE A</entry> </row> <row> <entry colname="col1" rowsep="0">B</entry> <entry colname="col2" rowsep="0">YY</entry> <entry colname="col3" rowsep="0">BB</entry> <entry colname="col4" rowsep="0">BBB</entry> <entry colname="col5" rowsep="0"><PARA>BBBB</PARA></entry> <entry colname="col6" rowsep="0">TITRE B</entry> </row> <row> <entry colname="col1" rowsep="0">A</entry> <entry colname="col2" rowsep="0">XX</entry> <entry colname="col3" rowsep="0">AA</entry> <entry colname="col4" rowsep="0">AAA</entry> <entry colname="col5" rowsep="0"><PARA>AAAA</PARA></entry> <entry colname="col6" rowsep="0">TITRE A</entry> </row> </tbody></tgroup></table>
Objectif : Regrouper les col2 pour les col1, col3, col4, col5 et col6 identiques
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 <table><tgroup><tbody> <row> <entry colname="col1" rowsep="0">A</entry> <entry colname="col2" rowsep="0">XX ZZ</entry> <entry colname="col3" rowsep="0">AA</entry> <entry colname="col4" rowsep="0">AAA</entry> <entry colname="col5" rowsep="0"><PARA>AAAA</PARA></entry> <entry colname="col6" rowsep="0">TITRE A</entry> </row> <row> <entry colname="col1" rowsep="0">B</entry> <entry colname="col2" rowsep="0">YY</entry> <entry colname="col3" rowsep="0">BB</entry> <entry colname="col4" rowsep="0">BBB</entry> <entry colname="col5" rowsep="0"><PARA>BBBB</PARA></entry> <entry colname="col6" rowsep="0">TITRE B</entry> </row> </tbody></tgroup></table>
Merci pour votre aide
Partager