Internationalization de XSL |
Encoding
|
Um atributo do encoding especifica um encoding preferido a ser usado. Um método da saída do HTML deve adicionar o elemento do META imediatamente depois de um inicí-Tag do elemento PRINCIPAL que especifica um encoding do caráter que deva realmente ser usado.
|
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>
|
|
|
|
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,
|