xsl-list
[Top] [All Lists]

Re: [xsl] XSLT 2.0: Character Output Issue

2007-07-18 09:01:10
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--