XSL looping against nodes



i need to create a XSLT that could manage two differnts forms like the following ones:



<form>
<requestor>rqu </requestor>
<pp1>pepe1<pp2>

</form>

<form>
<requestor>rqu </requestor>
<pp1>pepe1<pp1>
<pp2>pepe2<pp2>
</form>


The idea is to loop between all the nodes and output the information as following:


for first example


requestor -> rqu


pp1 -> pepe1


second example


requestor -> rqu


pp1 -> pepe1


pp2 -> pepe 2


Is an easy question but i dont know how to obtain the node name and loop nodes, i was searching and i didnt get nothing related...


No comments:

Post a Comment