Given an element with a value of:
<xml_element>Distrib = SU & Prem &lt;&gt; 0</xml_element>
I need to turn '&'amp;lt; '&'amp;gt; into '&'lt; '&'gt;
(forgive the tick marks around the ampersands above, I couldn't get it to format right)
because a downstream app requires it in this format throughout the entire XML document. I would need this for quotes and apostrophes too. I am tryinging a character-map in XSLT 2.0.
<xsl:character-map name="specialchar">
<xsl:output-character character="'" string="&apos;" />
<xsl:output-character character=""" string="&quot;" />
<xsl:output-character character=">" string="&gt;" />
</xsl:character-map>