create child nodes from sibling nodes until a different sibbling occurs.
- by user364939
Hi does anyone know what the xsl would look like to transform this XML. There can be N nte's after pid and N nte's after pv1. The structure is guaranteed in that all nte that follows pid belongs to pid and all nte following pv1 belongs to pv1.
From:
<pid>
</pid>
<nte>
<nte-1>1</nte-1>
<nte-3>Note 1</nte-1>
</nte>
<nte></nte>
<pv1></pv1>
<nte>
</nte>
into:
<pid>
<nte>
<nte-1>1</nte-1>
<nte-3>Note 1</nte-1>
</nte>
<nte>
</nte>
</pid>
<pv1>
<nte>
</nte>
</pv1>
Thanks!