【发布时间】:2017-08-17 09:46:24
【问题描述】:
我在下面的表格中有我的xml 内容,其中附录可以有任何编号。子孩子也是如此。
<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"/>
【问题讨论】:
-
一个例子是不够的:请用文字解释所需的逻辑。
标签: xml xslt xpath xml-parsing dita