Oleg Barmin schrieb:
Only
in case of using
org.apache.cocoon.components.serializers.HTMLSerializer I got
"<TITLE></TITLE>" instead of "<title/>". But it's not good to produce
HTML instead of xHTML.
You can use the XHTMLSerializer for this purpose.
I tried org.apache.cocoon.components.serializers.XHTMLSerializer but got "<title
/>" again:
That's strange. It works for me with <script> elements. Maybe it doesn't
handle <title> because this isn't supposed to be empty?
-- Andreas
<map:serializer name="xhtml" src="org.apache.cocoon.components.serializers.XHTMLSerializer" mime-type="text/html;
charset=utf-8" logger="sitemap.serializer.xhtml" pool-grow="2" pool-max="64" pool-min="2">
<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>
</map:serializer>
Best regards,
Oleg Barmin.
________________________________________
From: news [n...@ger.gmane.org] On Behalf Of Andreas Hartmann
[andr...@apache.org]
Sent: Monday, August 10, 2009 9:54 AM
To: user@lenya.apache.org
Subject: Re: Problem with <title/> and IE
Oleg Barmin schrieb:
I tried to use
org.apache.cocoon.components.serializers.XMLSerializer instead of
org.apache.cocoon.serialization.XMLSerializer . It did not help.
The XMLSerializer doesn't avoid empty-element tags.
Only
in case of using
org.apache.cocoon.components.serializers.HTMLSerializer I got
"<TITLE></TITLE>" instead of "<title/>". But it's not good to produce
HTML instead of xHTML.
You can use the XHTMLSerializer for this purpose.
You said about "new serializers". Are there any updates for them? The
date for XHTMLSerializer: "version CVS $Id: XHTMLSerializer.java
433543 2006-08-22 06:22:54Z crossley $"
So it's very old. But I didn't find newer version.
In comparison to the original o.a.c.serialization serializers these are
quite new :)
-- Andreas
Best regards, Oleg Barmin. ________________________________________
From: news [n...@ger.gmane.org] On Behalf Of Andreas Hartmann
[andr...@apache.org] Sent: Monday, August 10, 2009 5:06 AM To:
user@lenya.apache.org Subject: Re: Problem with <title/> and IE
IIRC the new serializers from the serializers block fix this issue.
You could try using
org.apache.cocoon.components.serializers.*Serializer
instead of
org.apache.cocoon.serialization.*Serializer
Take a look at the javadocs for more information.
HTH,
-- Andrea
-- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.:
+41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org For
additional commands, e-mail: user-h...@lenya.apache.org
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org
For additional commands, e-mail: user-h...@lenya.apache.org
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org
For additional commands, e-mail: user-h...@lenya.apache.org