Encoding
An encoding attribute specifies a preferred encoding to be used. An html output
method should add the META element immediately after a start-tag of HEAD element
specifying a character encoding which is actually to be used.
A D V E R T I S E M E N T
XML Source
<xslTutorial>
<HTMl>
<BODY>
<H1> HTML output </H1>
Žížala šnek ko?ka pa?ez be?ka m?šec výr
</BODY>
</HTML>
</xslTutorial>
HTML output 1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>HTML</TITLE> </HEAD>
<BODY>
<H1> HTML output </H1> Žížala šnek ko?ka pa?ez be?ka m?šec výr </BODY> </HTML>
XSL stylesheet 1
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="/xslTutorial/*"/>
</xsl:template>
</xsl:stylesheet>
Be the first one to comment on this page.
Share And Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords XSL Internationalization, xsl syntax, xsl dtd, jsp xsl, xsl namespace, xsl whitespace,
java internationalization, xsl space, xsl variable, xsl xpath, xsl document, xsl javascript,
xsl element, xsl entity, xsl text, xsl translate, xsl css, xsl doctype, xsl sort,
xsl count, xsl editor, xsl encoding, xsl xhtml, saxon xsl,struts internationalization,
xsl schema, xsl href, xsl param, xsl stylesheet, w3c xsl, rss xsl, xsl include,
xsl template, xsl html, xsl if, xsl replace, xsl parameter, xsl function, xsl processor,
xsl id, xsl output, xsl node,