Re: [xsl] XSLT 2.0: Character Output Issue

Subject: Re: [xsl] XSLT 2.0: Character Output Issue
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 18 Jul 2007 18:00:28 +0200
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
	http://JavaScript.FAQTs.com/

Current Thread