I'm transforming an XML-Document to an XML-Document. The output of this instruction:
<xsl:value-of select="'a 2'"/>
should be:
..>a 2<...
The current output is:
a 2
So the entity is interpreted. How can I escape it?
I tried
- \
- /
- concat('a', ' ', '2')
4.
<xsl:character-map name="entities">
<xsl:output-character character=" " string=" "/>
</xsl:character-map>
<xsl:output encoding="UTF-8" indent="yes" method="xml" use-character-maps="entities"/>
For the transformation I use Oxygen 20.1 with embedded Saxon EE 9.8.0.12