[XSLT] parcours d'un fichier XML
Bonjour , voilà je débute sur XSL, et j'ai des petits soucis pour faire ca :
Soit le fichier XML suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <A>
<B0>
<B attribute1='toto'>
<c attribute2='t1' attribute3='t1' attribute3='t1' />
<d attribute2='t2' attribute3='t2' attribute3='t2' />
<e attribute2='t3' attribute3='t3' attribute3='t3' />
</B>
<B0>
<B1>
<B attribute1='toto'>
<c attribute2='t1' attribute3='t1' attribute3='t1' />
<d attribute2='t2' attribute3='t2' attribute3='t2' />
<e attribute2='t3' attribute3='t3' attribute3='t3' />
</B>
<B1>
</A> |
Je voudrais par exemple si j'ai entré B0 , créer des nœuds contenant :
Code:
1 2 3 4 5 6
|
<Res>
<A B0 B c attribute1='toto' c attribute2='t1' attribute3='t1' attribute3='t1' />
<A B0 B d attribute1='toto' d attribute2='t2' attribute3='t2' attribute3='t3' />
<A B0 B d attribute1='toto' e attribute2='t3' attribute3='t3' attribute3='t2' />
</Res> |
Merci d'avence pour toues aides