You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Oleg Barmin <Ol...@bridge-quest.com> on 2009/08/10 10:37:49 UTC
Problem with and IE
Hi,
I want to add to the module jx page without a title.
<?xml version="1.0" ?>
<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
<!--<page:title>Comments</page:title>-->
<page:body>
...
</page:body>
</page:page>
So in the output I get:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title />
The page doesn't work in IE (problem not exists for Firefox). IE works only if "<title></title>" is used but not "<title/>".
Any ideas how to solve this problem?
Best regards,
Oleg Barmin.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Problem with and IE
Posted by Andreas Hartmann <an...@apache.org>.
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 [news@ger.gmane.org] On Behalf Of Andreas Hartmann [andreas@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 [news@ger.gmane.org] On Behalf Of Andreas Hartmann
>> [andreas@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-unsubscribe@lenya.apache.org For
>> additional commands, e-mail: user-help@lenya.apache.org
>
>
> --
> Andreas Hartmann, CTO
> BeCompany GmbH
> http://www.becompany.ch
> Tel.: +41 (0) 43 818 57 01
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
RE: Problem with and IE
Posted by Oleg Barmin <Ol...@bridge-quest.com>.
> > 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:
<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 [news@ger.gmane.org] On Behalf Of Andreas Hartmann [andreas@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 [news@ger.gmane.org] On Behalf Of Andreas Hartmann
> [andreas@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-unsubscribe@lenya.apache.org For
> additional commands, e-mail: user-help@lenya.apache.org
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Problem with and IE
Posted by Andreas Hartmann <an...@apache.org>.
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 [news@ger.gmane.org] On Behalf Of Andreas Hartmann
> [andreas@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-unsubscribe@lenya.apache.org For
> additional commands, e-mail: user-help@lenya.apache.org
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
RE: Problem with and IE
Posted by Oleg Barmin <Ol...@bridge-quest.com>.
I tried to use org.apache.cocoon.components.serializers.XMLSerializer instead of org.apache.cocoon.serialization.XMLSerializer . It did not help. 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 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.
Best regards,
Oleg Barmin.
________________________________________
From: news [news@ger.gmane.org] On Behalf Of Andreas Hartmann [andreas@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-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Problem with and IE
Posted by Andreas Hartmann <an...@apache.org>.
Oleg Barmin schrieb:
> Hi,
>
> I want to add to the module jx page without a title.
>
> <?xml version="1.0" ?>
> <page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
> xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
> xmlns="http://www.w3.org/1999/xhtml"
> xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
>
> <!--<page:title>Comments</page:title>-->
> <page:body>
> ...
> </page:body>
> </page:page>
>
> So in the output I get:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title />
>
> The page doesn't work in IE (problem not exists for Firefox). IE works only if "<title></title>" is used but not "<title/>".
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-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org