This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: encoding issues


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]