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

RE: encoding issues

Subject: RE: encoding issues
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Wed, 3 Jul 2002 11:57:22 +0100
force ie encoding
>The problem is that the output of your transformation is labelled as
XML,
>but the XML is not well-formed (missing document element).

Yeah, thats a typo but it makes no difference

>Even if the transformation result *would* be wellformed XHTML, this
wouldn't
>work, as IE does not support XHTML (properly).

Its all come about because I wanted to produce xhtml - by adding the
xsl:output element:

<xsl:output
	
doctype-system="http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1
-strict.dtd"
  	doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
  	method="xml"
	encoding="utf-8"/>

I inadvertantly added the encoding attribute, which led to IE not
selecting unicode.

>So the only clean solution is to produce HTML using the "html"
xsl:output
>method. This will insert the proper META tag (which IE requires to
detect
>the encoding).

True, but &#160; is a non-breaking-space in anyones markup.

btw, the <meta> tag only gets inserted if you have a <head> in your
output, but yes it does seem to force IE to use unicode (msxml3/4) and
utf-8 (saxon).


cheers
andrew

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
 

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.