我是XSL的新手,我需要一些細節來實現這個過程。 我想用xsl實現一個模板以獲得父節點上的多個outputbased,請你幫助我。xsl如何將一個節點拆分爲多個
This is the input required now :
<parent>
<company>
<liv dt="2015-10-22" >
<Qty type ="NET"> 55</Qty>
<Qty type ="FAR"> 558</Qty>
<Qty type ="MAE"> 1222</Qty>
<HR amt ="NET"> 55</HR>
<Risk> adsm </Risk>
</liv>
<company>
</parent>
this is the output desired:I need to seprate the companies by Type, the other records should always appear as they were, Thanks a lot for the help:
<parent>
<company>
<liv dt="2015-10-22" ><Qty type ="NET"> 55</Qty>
<HR amt ="NET"> 55</HR>
<Risk> adsm </Risk>
</liv>
</company>
<company>
<liv dt="2015-11-1" ><Qty type ="FAR"> 558</Qty>
<HR amt ="NET"> 55</HR>
<Risk> adsm </Risk>
</liv>
</company>
<company>
<liv dt="2015-10-28" ><Qty type ="MAE"> 1222</Qty>
<HR amt ="NET"> 55</HR>
<Risk> adsm </Risk>
</liv>
</company>
</parent>
你的問題不清楚。爲什麼FAR和MAE在一起,但NET是分開的? 「新價值:」的意義是什麼?請顯示您期望的**精確**輸出。同時指出是否使用XSLT 1.0或2.0。 –
對不起,沒有任何新的價值 – user3145787