2
我是XSLT的新手。我想爲使用XSLT的現有子節點添加父節點。我的XML文件看起來像下面如何使用XSLT添加父節點
轉換之前轉換
<Library>
.
.//There is more nodes here
.
<CD>
<Title> adgasdg ag</Title>
.
.//There is more nodes here
.
</CD>
.
.//There is more nodes here
.
<CLASS1>
<CD>
<Title> adgasdg ag</Title>
.
.//There is more nodes here
.
</CD>
</CLASS1>
</Library>
後
<Library>
<Catalog>
<CD>
<Title> adgasdg ag</Title>
</CD>
</Catalog>
<Class1>
<Catalog>
<CD>
<Title> adgasdg ag</Title>
</CD>
</Catalog>
</Class1>
</Library>