[xsl] character encoding with MSXML3

Subject: [xsl] character encoding with MSXML3
From: "MacEwan, James (Information Services)" <James.MacEwan@xxxxxxxxxxxxxxxxxx>
Date: Fri, 22 Jun 2001 09:35:26 -0500
Hi xsl-list'ers,

I am creating HTML documents that are bilingual (English and French) (i.e.
using <xsl:output method="html">).  
I successfully have Saxon putting out those special HTML Latin characters
(e.g. &eacute;) for my French output.

I do not have such success with Microsoft.  It puts out the actual small e
acute -- what you get when you type ALT-130 on a Windows box in notepad.
Unfortunately for now, I am stuck with Microsoft's MSXML parser.  

Does anyone know if there is a setting in Microsoft's parser to get it to
put out "&eacute;"? Or perhaps I am missing something in my xsl:stylesheet

(BTW:  The XSLT Test tool is a great way to quickly compare output between
different XSL implementations.


My XML (note the encoding is ISO not UTF) ---------------
<?xml version="1.0" encoding="ISO-8859-1"?>
	<FRENCH_MENU>Relev&#233;s clients</FRENCH_MENU>

My XSL ---------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"

<xsl:output method="html"/>

<xsl:template match="/">
	<xsl:apply-templates select="dtdTest"/>

<xsl:template match="dtdTest">

<xsl:template match="ENGLISH_MENU">
	<xsl:value-of select="."/>

<xsl:template match="FRENCH_MENU">
	<xsl:value-of select="."/>


My happy output using Saxon ---------
      	Client Statements
      	Relev&eacute;s clients

My less happy Microsoft output (apologies to all whose systems have munged
the e-acute below) --------
	Client Statements
	Relevés clients

James MacEwan
Software Developer
Investors Group Inc.
v: (204) 956-8515
f: (204) 943-3540

"I don't know, lad. It's like no cheese I've ever tasted." -- Wallace

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread