<xslTutorial creator="nicmila@idoox.com">
<index keywords='xsl:output encoding'/>

<description>The encoding attribute specifies the preferred encoding to be used. The html output method should add a META element immediately after the start-tag of the HEAD element specifying the character encoding actually used. <stylesheet id='id2'/> outputs in UTF-8, <stylesheet id='id3'/> in UTF-16, and <stylesheet id='id4'/> in Cp1250. In <stylesheet id='id5'/> look at the source  of the lowest middle window in your browser. The xml source contains characters which are not present in specified character set and they are therefore escaped.
</description>

<xmlSource id="id1">
<HTML>
<HEAD>
<TITLE>HTML</TITLE>
</HEAD>
<BODY>
<H1> HTML output </H1>
Žížala šnek kočka pařez bečka měšec výr  
</BODY>
</HTML>
</xmlSource>

<attValues>
<value match=''></value>
</attValues>

<xslStylesheet id="id2">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="/xslTutorial/*"/>
</xsl:template>
</xslStylesheet>

<xslStylesheet id="id3">
<xsl:output method="html" encoding="UTF-16"/>
<xsl:template match="/">
<xsl:copy-of select="/xslTutorial/*"/>
</xsl:template>
</xslStylesheet>

<xslStylesheet id="id4">
<xsl:output method="html" encoding="Cp1250"/>
<xsl:template match="/">
<xsl:copy-of select="/xslTutorial/*"/>
</xsl:template>
</xslStylesheet>

<xslStylesheet id="id5">
<xsl:output method="html" encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:copy-of select="/xslTutorial/*"/>
</xsl:template>
</xslStylesheet>

</xslTutorial>