[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: FW: ] Top Ten Java and XSLT Tips, #5

Subject: RE: FW: ] Top Ten Java and XSLT Tips, #5
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Wed, 5 Sep 2001 10:11:55 +0200
output method xslt xhmtl
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of timw@xxxxxxx
> Sent: Wednesday, September 05, 2001 9:31 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  FW: ] Top Ten Java and XSLT Tips, #5
> Hi Dimitre,
> I think Eric is thinking of it in terms of XHTML - so wants it as
> &nbsp; for
> browser display.
> Personally, I never use anything other than &#160; because I have
> never had
> any problems with it being rendered in a browser other than intended. (I
> generally use output method "html" for browser display)
> Apparently when the output method is "xml", (for XHTML display) Microsoft
> Internet Explorer 5.5 running on Windows 2000 capital letter "A" with the
> circumflex accent symbol above it.
> That is the example he has given me of a place where &#160;
> doesn't display
> as expected in the browser.

What happened was:

a) A file was saved as XHTML with encoding UTF-8.

b) The file extension is "html".

c) The file is loaded locally from the filesystem and runs through IE's HTML
parser (not MSXML).

d) The HTML parser ignores the XML encoding declaration - it look for an
optional META tag specifying the encoding and doesn't find it.

e) With no information about the encoding, it falls back to whatever it
thinks is best, on my machine to ISO-Latin-1.

Fix: produce correct META tags. Inserting a

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

will fix Eric's problem.

So, as far as I understand the situation, this is almost expected behaviour:
IE doesn't really support XHTML yet, so it will ignore XML encoding
declarations when displaying XHMTL through it's HMTL engine.

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.