<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/1999/xhtml"
                version="2.0">

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

<xsl:output name="html" method="xml" indent="yes" 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="é" string="&eacute;"/>
  <xsl:output-character character=" " string="&nbsp;"/>
</xsl:character-map>

<xsl:template match="/">
  <xsl:result-document href="charmap1-out1.xml">
    <html>
      <head>Example 1: No Map</head>
      <body>
	<p>Trés non-breakable.</p>
      </body>
    </html>
  </xsl:result-document>

  <xsl:result-document format="html" href="charmap1-out2.xml">
    <html>
      <head>Example 2: Simple Map</head>
      <body>
	<p>Trés non-breakable.</p>
      </body>
    </html>
  </xsl:result-document>
</xsl:template>

</xsl:stylesheet>