Presumably your 3rd party software is generating ISO-8859-1 encoding? Have
you tried setting your output encoding attribute in the xsl:output element
to ISO-8859-1 and getting rid of your meta literal result element? Let the
xsl:output element do as much work as you can. You can set doctypes there,
too.
Chuck White
Author, Mastering XSLT, Sybex Books
http://www.javertising.com/webtech
http://www.tumeric.net
----- Original Message -----
From: "Rowlinson, Nicole SLGA"
<NRowlinson(_at_)slga(_dot_)gov(_dot_)sk(_dot_)ca>
To: <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, June 16, 2003 2:48 PM
Subject: [xsl] Special Characters in IE 6
I have a problem with special characters not displaying properly in IE 6.
I
use numeric character codes, such as   for a space, and they all
display as a question mark in IE 6. They all worked fine in IE 5.5, so
I'm
not sure what is different now.
The encoding I am using in my XSL is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns="http://www.w3.org/TR/REC-html40">
<xsl:template match="/">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=UTF-8" />
</head>
...
If I include
xmlns="http://www.w3.org/TR/REC-html40"
in my namespace, it gets rid of the question marks, but then the special
characters that don't use a numeric code, such as apostrophes, appear as
garbage characters. I can't find the right combination to get rid of both
these problems at the same time.
I should say that I don't have control over the XML, as it is generated by
a
third-party product.
Any help is greatly appreciated!
Nicole R.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list