Creating Entities

Suppose you want to construct an XHTML document that uses   for non-breaking spaces, é for “é”, etc.

<xsl:output method="xml"
            doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
            doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
            use-character-maps="example-map"/>

<xsl:character-map name="example-map">
  <xsl:output-character character="&#233;"
                        string="&amp;eacute;"/>
  <xsl:output-character character="&#160;"
                        string="&amp;nbsp;"/>
</xsl:character-map>