I am getting below error while using character-map feature of XSLT 2.0 in my code.
The element 'stylesheet' in namespace 'http://www.w3.org/1999/XSL/Transform' has invalid child element 'character-map' in namespace 'http://www.w3.org/1999/XSL/Transform'
Here is my XSLT declaration
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:character-map name="a">
<xsl:output-character character="'" string="&apos;"/>
</xsl:character-map>
<xsl:output indent="yes" use-character-maps="a"/>
Please help on how to use character-map in XSLT.