xml是这样的:
< cell i='0' j='0' vi='0' parity='Odd' subType='-1'> & #34;String& #39;</cell>
但是在解释了xsl之后,输出是这样的:
< td nowrap="true" class="gridCell" i="0" j="0">"String'< /td>
我想保留 & #34; 和'。我试过字符映射,但它不起作用。代码是这样的:
< xsl:character-map name="raquo.ent">
<xsl:output-character character="'" string="&apos;"/>
<xsl:output-character character="'" string="&apos;"/>
< /xsl:character-map>
< xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" use-character-maps="raquo.ent"/>
任何人都可以帮忙吗?非常感谢你!