You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2004/12/04 06:14:10 UTC

difference between o.a.c.components.serializers.HTMLSerializer and o.a.c.serialization.HTMLSerializer?

the sitemaps of both 1.2 and trunk have

     <map:serializer name="html" logger="sitemap.serializer.html" 
mime-type="text/html" pool-grow="4" pool-max="32"
         pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
       <doctype-public>-//W3C//DTD HTML 4.01 
Transitional//EN</doctype-public>
       <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
       <buffer-size>1024</buffer-size>
       <encoding>UTF-8</encoding>
     </map:serializer>
<!-- This serializer (Cocoon-2.1.5) has an issue with namespaces -->
<!--
     <map:serializer name="html" logger="sitemap.serializer.html" 
mime-type="text/html" pool-grow="4" pool-max="32"
     pool-min="4" 
src="org.apache.cocoon.components.serializers.HTMLSerializer">
       <encoding>UTF-8</encoding>
     </map:serializer>
-->

from what i understand, said issue has been fixed in 2.1.6 by antonio. 
which serializer should be used, then?

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: difference between o.a.c.components.serializers.HTMLSerializerand o.a.c.serialization.HTMLSerializer?

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Gregor J. Rothfuss wrote:

> interestingly, when i switched in trunk, both the menu weirdness michi 
> had reported and some utf-8 problems on the sitetree vanished.
> 
> on the downside, the output contains things like
> 
> <xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml" 
> xmlns:dcterms="http://purl.org/dc/terms/" 
> xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">The XHTML 
> Doctype is for situations where users ask for complete freedom on what 
> information can be inserted into a document. While this approach 
> doesn&apos;t restrict you, it also looses some of the major benefits of 
> well defined document types.</xhtml:p>
> 
> so we need to make sure all namespaces are stripped.

i tried (unsuccessfully) to apply strip_namespaces to deal with this, so 
for the meantime,
i set the serializer to html. once we have a better understanding of 
this we should take a second look.



-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: difference between o.a.c.components.serializers.HTMLSerializerand o.a.c.serialization.HTMLSerializer?

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Antonio Gallardo wrote:

>>i assume  o.a.c.components.serializers.HTMLSerializer and
>>o.a.c.components.serializers.XMLSerializer is pier's improved
>>serializer. anyone against using those in trunk by default?
> 
> 
> +1 to use(test) them in the default trunk.

interestingly, when i switched in trunk, both the menu weirdness michi 
had reported and some utf-8 problems on the sitetree vanished.

on the downside, the output contains things like

<xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml" 
xmlns:dcterms="http://purl.org/dc/terms/" 
xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">The XHTML 
Doctype is for situations where users ask for complete freedom on what 
information can be inserted into a document. While this approach 
doesn&apos;t restrict you, it also looses some of the major benefits of 
well defined document types.</xhtml:p>

so we need to make sure all namespaces are stripped.

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: difference between o.a.c.components.serializers.HTMLSerializerand o.a.c.serialization.HTMLSerializer?

Posted by Andreas Hartmann <an...@apache.org>.
Antonio Gallardo wrote:
> On Vie, 3 de Diciembre de 2004, 23:16, Gregor J. Rothfuss dijo:
> 
>>Gregor J. Rothfuss wrote:
>>
>>
>>>from what i understand, said issue has been fixed in 2.1.6 by antonio.
>>>which serializer should be used, then?
>>
>>i assume  o.a.c.components.serializers.HTMLSerializer and
>>o.a.c.components.serializers.XMLSerializer is pier's improved
>>serializer. anyone against using those in trunk by default?
> 
> 
> +1 to use(test) them in the default trunk.

+1

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: difference between o.a.c.components.serializers.HTMLSerializerand o.a.c.serialization.HTMLSerializer?

Posted by Antonio Gallardo <ag...@agssa.net>.
On Vie, 3 de Diciembre de 2004, 23:16, Gregor J. Rothfuss dijo:
> Gregor J. Rothfuss wrote:
>
>> from what i understand, said issue has been fixed in 2.1.6 by antonio.
>> which serializer should be used, then?
>
> i assume  o.a.c.components.serializers.HTMLSerializer and
> o.a.c.components.serializers.XMLSerializer is pier's improved
> serializer. anyone against using those in trunk by default?

+1 to use(test) them in the default trunk.

Best Regards,

Antonio Gallardo



---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: difference between o.a.c.components.serializers.HTMLSerializer and o.a.c.serialization.HTMLSerializer?

Posted by Michael Wechner <mi...@wyona.com>.
Gregor J. Rothfuss wrote:

> Gregor J. Rothfuss wrote:
>
>> from what i understand, said issue has been fixed in 2.1.6 by 
>> antonio. which serializer should be used, then?
>
>
> i assume  o.a.c.components.serializers.HTMLSerializer and
> o.a.c.components.serializers.XMLSerializer is pier's improved 
> serializer. anyone against using those in trunk by default?


+1 for trunk (1.4)

Michi

>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: difference between o.a.c.components.serializers.HTMLSerializer and o.a.c.serialization.HTMLSerializer?

Posted by Rolf Kulemann <ro...@apache.org>.
On Sat, 2004-12-04 at 06:16, Gregor J. Rothfuss wrote:
> Gregor J. Rothfuss wrote:
> 
> > from what i understand, said issue has been fixed in 2.1.6 by antonio. 
> > which serializer should be used, then?
> 
> i assume  o.a.c.components.serializers.HTMLSerializer and
> o.a.c.components.serializers.XMLSerializer is pier's improved 
> serializer. anyone against using those in trunk by default?

+1 for trunk test.

-- 
Rolf Kulemann


---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: difference between o.a.c.components.serializers.HTMLSerializer and o.a.c.serialization.HTMLSerializer?

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Gregor J. Rothfuss wrote:

> from what i understand, said issue has been fixed in 2.1.6 by antonio. 
> which serializer should be used, then?

i assume  o.a.c.components.serializers.HTMLSerializer and
o.a.c.components.serializers.XMLSerializer is pier's improved 
serializer. anyone against using those in trunk by default?


-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org