You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Roman Mario Xerxes Rometsch <xe...@mathematik.uni-ulm.de> on 2005/12/09 12:55:17 UTC
xml declaration and msie
Hi,
I'm pretty sure that someone has had the same problem:
How can I prevent lenya from inserting the xml-declaration at the top of
every xhtml document? (Because IE then goes to quirks mode......)
I cannot use the BrowserSelector from cocoon because i use the
StaticHTMLExporter.
Thanks in advance
Mario Rometsch
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: xml declaration and msie
Posted by Jürgen Ragaller <ra...@null-oder-eins.ch>.
Hi Mario
I am not shure if this helps in Your case (using the static HTML-
exporter).
The xml prolog can be avoided by setting a parameter of the xhtml
serializer.
in the publication-sitemap.xmap I use the following code:
<map:components>
<map:serializers default="html">
<map:serializer name="xhtml" logger="sitemap.serializer.xhtml"
mime-type="text/html; charset=utf-8" pool-grow="2" pool-max="64" pool-
min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-
public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-
strict.dtd</doctype-system>
<encoding>UTF-8</encoding>
<omit-xml-declaration>yes</omit-xml-declaration>
</map:serializer>
</map:serializers>
</map:components>
The xml prolog is avoided by: <omit-xml-declaration>yes</omit-xml-
declaration>
HTH.
Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org