我有以下結構化源XML文檔:嘿guyz我一直在全國各地尋找解決方案,但沒有發現任何類似的事情:
<a>
<k>
<l> l_hello </l>
</k>
<b id="0">
<c>
<d>d_hello</d>
</c>
</b>
<e id="0">
<f>
<g>
<h>h_hello</h>
</g>
</f>
</e>
</a>
現在我想做的是......我想要重複整個<b>
標記5次並且與之平行<e>
標記5次,並具有所有的屬性。我的意思是說我想下面出去找生成:
<a>
<k>
<l> l_hello </l>
</k>
<b id="0">
<c>
<d>d_hello</d>
</c>
</b>
<e id="0">
<f>
<g>
<h>h_hello</h>
</g>
</f>
</e>
<b id="0">
<c>
<d>d_hello</d>
</c>
</b>
<e id="0">
<f>
<g>
<h>h_hello</h>
</g>
</f>
</e>
<b id="0">
<c>
<d>d_hello</d>
</c>
</b>
<e id="0">
<f>
<g>
<h>h_hello</h>
</g>
</f>
</e>
<b id="0">
<c>
<d>d_hello</d>
</c>
</b>
<e id="0">
<f>
<g>
<h>h_hello</h>
</g>
</f>
</e>
<b id="0">
<c>
<d>d_hello</d>
</c>
</b>
<e id="0">
<f>
<g>
<h>h_hello</h>
</g>
</f>
</e>
</a>
如果任何人都拿出一個解決辦法是有很大幫助....我已經生成的代碼,但是這是在粘貼都錯了所以沒有點這裏.....
請註明XSLT 1.0或2.0。並改變你的標題爲更具描述性和適當的 –