The xml was like this:
< cell i='0' j='0' vi='0' parity='Odd' subType='-1'> & #34;String& #39;</cell>
But after the intepretion of the xsl, the output is like this:
< td nowrap="true" class="gridCell" i="0" j="0">"String'< /td>
I would like to keep the & #34; and & #39;. I've tried character map,but it doesn't work. The code is like this:
< 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"/>
Can anyone help? Thank you very much!
This transformation:
when applied on the provided XML document:
produces the wanted, correct result: