cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Hoofe <kont...@hoofe.de>
Subject Re: Encoding problems
Date Fri, 17 Sep 2004 09:40:36 GMT
> 
> Don't know exactly about Opera, but M$IE definitely doesn't evaluate
> 
>            <?xml version="1.0" encoding="..."?>.
> 
> Instead it wants to get the correct HTTP header's charset information.

Internet Explorer has an unfortunate bug involving the xml prolog declaration.
If there is anything on the first line before the doctype, IE6 will switch into
"quirks" mode. This means that using an xml prolog delaration (<?xml
version="1.0" encoding="UTF-8"?>) will cause the behavior. An HTML comment, even
an empty one, will do the same.

-> http://www.positioniseverything.net/articles/doctypes.html

Put this into your sitemap.xmap to produce output IE understands:

<map:serializer  ... >
    <omit-xml-declaration>yes</omit-xml-declaration>
</map:serializer>   




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message