【发布时间】:2013-10-01 07:04:12
【问题描述】:
在我的 xml 中,命名空间 http://abc.com/source/error 应替换为 http://abc.com/error/i1。我必须使用xslt1.0,单独替换uri部分非常具有挑战性。所有其他都应该与输出一样。如果此命名空间不存在,则输入 xml 应按原样传递到输出。
我的输入 xml
<a xmlns:hj="http://abc.com/source/error">
<hj:b>sam</hj:b>
</a>
预期输出
<a xmlns:hj="http://abc.com/source/error/i1">
<hj:b>sam</hj:b>
</a>
【问题讨论】:
标签: xml namespaces xslt-1.0