我在下面的表單中有我的xml
內容,其中附錄可以有任何no。的子女也是如此。xslt如何遞歸地更改子節點的標記名稱
<topicref outputclass="Dx:Appendix" href="AppendixA-test.dita">
<topicref outputclass="Dx:Appendix" href="AppendixA-sub-test.dita"/>
</topicref>
<topicref outputclass="Dx:Appendix" href="AppendixB-test.dita"/>
現在我想我輸出XML看起來像這樣:
<appendix href="AppendixA-test.dita">
<topicref href="AppendixA-sub-test.dita"/>
</appendix>
<appendix href="AppendixB-test.dita"/>
一個例子是不夠的:p用言語解釋所需的邏輯。 –