How to unescape XML characters with help of XSLT?
xml, xslt
Solution
<xsl:template match="text">
<body>
<xsl:value-of select="." disable-output-escaping="yes" />
</body>
</xsl:template>
Note that the output is not guaranteed to be well-formed XML anymore.
Problem
I need to unescape XML characters from inside of XML nodes with the help of only XSLT transformations. I have `<text><>and other possible characters</text>` and need to get it as valid formatted HTML when I place it inside of the body tag.