【发布时间】:2012-07-18 06:51:41
【问题描述】:
我有一个 XML 节点,它是如下较大 XML 的一部分,其中包含下标中的某些符号。
<MT N="Abstract" V="Centre-of-mass energies in the region 142<W<sub>γp</sub><293 GeV with the ZEUS detector at HERA using an integrated luminosity"/>
我需要格式化@V 属性中的值,这样每个&lt; 后面都是&lt;W 中的字母,应该替换为&lt; W,它们之间有一个空格,当用 XSLT 解析。
这可能吗?首选 XSLT 1.0 解决方案。
【问题讨论】: