| Subject: Re: [xsl] XSLT 2.0:  Character Output Issue From: "Sam Byland" <shbyland@xxxxxxxxxxx> Date: Wed, 18 Jul 2007 12:21:11 -0400 | 
Sam Byland wrote:
Our original XSLT has the following meta element output:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
So changing that to
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
fixes the problem with regards to the display when opened within MS Word.
You should not put such a meta element in your stylesheet, use xsl:output with method html and the intended output encoding and the XSLT processor will place the proper meta element in the HTML result when serializing the result tree.
--
Martin Honnen
<xsl:result-document href="{$OutputFileName}" format="WordHTML">
   <xsl:apply-templates select="$ProcedureNodes" mode="Output">
       ...
   </xsl:apply-templates>
</xsl:result-document>| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] XSLT 2.0: Character Outp, Martin Honnen | Thread | [xsl] XSLT 2.0: Security concerns, Justin Johansson | 
| Re: [xsl] XSLT 2.0: Character Outp, Justin Johansson | Date | [xsl] Filtering/Removing Truly Dupl, Wasiq Shaikh | 
| Month |