Re: XML and Extended characters in IE 6.x
by "Keith D Sellars" <Keith(at)webgraffix.com>
|
| Date: |
Thu, 12 Jun 2003 12:50:09 -0400 |
| To: |
"Evans, Chuck" <CEvans(at)Empirix.com>, <hwg-languages(at)hwg.org> |
| References: |
empirix |
| |
todo: View
Thread,
Original
|
|
Have you tried using ü . These are from
http://www.w3.org/MarkUp/html3/latin1.html showing the latin set of
characters.
Thanks,
Keith D Sellars
WebGraffix
www.webgraffix.com
"Making database sites seem easy"
----- Original Message -----
From: "Evans, Chuck" <CEvans(at)Empirix.com>
To: <hwg-languages(at)hwg.org>
Sent: Thursday, June 12, 2003 10:26 AM
Subject: XML and Extended characters in IE 6.x
Hello out there...
First off, I need to declare that I am not an expert in XML/XSL. I use know
just enought of it to get it to work for me, which is probably the root of
my current problem:
I have a web form page that is generated on the server from data in an XML
file through an XSL stylesheet and then sent to the browser. There is a
place on the page for introductory text, which I normally supply in the XML
file.
The introductory text in this particular case is in German, and has lots of
u-umlauts and other extended characters. Everything I've found searching on
the web says that I can use Unicode entities in the XML file (such as
ü for ΓΌ) and they should display correctly on the web page. This is
true for both Netscape 4.x and 7.x, but it is NOT true for Internet Explorer
6.x.
This is driving me crazy. The only reference to this bug I've found
searching on the web suggests that this bug was put in on PURPOSE by
Microsoft in order to maintain backward compatibility to XML applications
written for IE 5.x. Grrrrr.
Short of having to put the german text into conditional text within the XSL
stylesheet (a workaround that won't scale nicely to future German pages if I
have to add new conditional text with every new form) is there a workaround
I can use in my current XML/XSL setup?
You can see the web form displayed at:
http://www.empirix.com/ecd/oneform/empirix-oneform.asp?cid=061603-1
Some basic info from my XML and XSL:
Server is IIS 5.0 and I'm using MSXML3. (Please don't suggest I use a
different XML thing. I'm not an expert with this at all.)
XML version declared in both XML and XSL sheet: <?xml version="1.0"
encoding="ISO-8859-1"?>
(I tried using encoding="UTF-8" but that wouldn't render the page at all.)
In empirix-oneform.asp, the XML and XSL are generated on the server using
the following ASP code, which I believe is MSXML3:
'put the XML in an object
Set xml = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
xml.async = False
xml.load Server.MapPath("campaign.xml")
'Load the XSL into an object
Set xsl = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
xsl.async = False
xsl.Load Server.MapPath("empirix-oneform.xsl")
' add parameters to the xsl
Set XSLTemplate = Server.CreateObject("MSXML2.XSLTemplate")
Set XSLTemplate.stylesheet = xsl
Set proc = XSLTemplate.createProcessor
proc.Transform
Response.Write proc.output
Any help is appreciated.
Chuck Evans
Web Marketing Manager
Empirix Inc.
phone 781.993.8675 | cell 508.259.6945 | fax 781.993.8779
address 1430 Main Street | Waltham, MA | 02451
web http://www.empirix.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.