我有一个followig XML数据转换<和>
<xml>
<para>
<number>1</number>
<text class="text">the cost to the <123; each capital property <a href="none" num="88(1)">88(1)</a> and (1.7) </text>
</para>
我想运行一个XSLT脚本,这将给下面的输出
<xml>
<para>
<number>1</number>
<text class="text">the cost to the <123; each capital property <a href="none" num="88(1)">88(1)</a> and (1.7) </text>
</para>
</xml>
所以bascially与<text>
更换<text class="text">
和与</text>
我想用包机马平这样
<xsl:character-map name="a">
<xsl:output-character character="<" string="<"/>
<xsl:output-character character=">" string=">"/>
</xsl:character-map>
但问题这种方法的是,这一切都<
转换成<
这导致我们不希望的问题来取代它像上面<123;
什么是'< 123;'?在那里,对于任何自动化流程来说,区分应该是XML标记还是没有标记是很困难的。 – LarsH
确定哪些'<'你不想失踪的逻辑规则是什么? – LarsH
如果我们没有匹配>则忽略它。 – atif