Retaining entity in xslt stylesheet output without using character-map
问题 Where did we go wrong? When I process this xml with xslt 2 on saxon he: <data> <grab>Grab me and print me back "</grab> </data> using this stylesheet: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="/"> <xsl:apply-templates select="/data/grab"/> </xsl:template> <xsl:template match="/data/grab"> <node><xsl:value-of select="text()"/></node> </xsl:template> </xsl:stylesheet> I get this output: <?xml version="1.0" encoding="UTF-8"?><node>Grab