私は XSLT が初めてです。XSLT を使用して、既存の子ノードに親ノードを追加したいと考えています。私のXMLファイルは以下のようになります
変換前
<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>