【发布时间】:2013-03-12 21:51:08
【问题描述】:
我有一个 xml 文件,其中标签的属性是其他 xml 文件的 src。
<a>
<b>
<c src="other1.xml" name="other1"></c>
<c src="other2.xml" name="other2"></c>
<c src="other3.xml" name="other3"></c>
</b>
</a>
我想将此 xml 文件的内容更改为以下格式
<a>
<b>
<other1> content of other1.xml </other1>
<other2> content of other2.xml </other2>
<other3> content of other3.xml </other3>
</b>
</a>
我尝试使用 xsl:variable 并在其中存储 src 的值,但出现错误。
有人请提出解决方案....即使是提示也将不胜感激
【问题讨论】: