Hello, I have an xml-file like this:
In XSLT 1.0, how would I go about producing this output:
I hva tried differrent solutions for this over the past couple of days. But have failed in producing the desired output every time. The problem lies in merging the two nodes. (The tag xsl:sort helps me sort accordingly though).
Any help would be greatly appreciated.... .
Code:
<ROOT>
<ORDER_LINES>
<DATA>
<LINE_NO>1</LINE_NO>
<MISC_INFO/>
</DATA>
<DATA>
<LINE_NO>2</LINE_NO>
<MISC_INFO/>
</DATA>
</ORDER_LINES>
<SORT>
<LINE_NO sort_no="2">1</LINE_NO>
<LINE_NO sort_no="1">2</LINE_NO>
</SORT>
</ROOT>
Code:
<ORDER_LINES>
<DATA>
<LINE_NO sort_no="1">2</LINE_NO>
<MISC_INFO/>
</DATA>
<DATA>
<LINE_NO sort_no="2">1</LINE_NO>
<MISC_INFO/>
</DATA>
</ORDER_LINES>
Any help would be greatly appreciated.... .
Comment