cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Pietschmann" <>
Subject AW: XML Serializers [was: XMLSerializer replaces tabs with &#9;]
Date Tue, 07 Dec 2004 08:37:30 GMT
Thank all alot for your efforts.

I've tried with the "new" XMLSerializer
(cocoon.components.serializers.XMLSerializer) and it looks promising,
however there is a problem with the mime-type!

<map:serializer mime-type="text/html" name="xhtml"
	<doctype-public>-//W3C//DTD XHTML 1.0

serves all files as text/xml (the encoding is right), although the mime-type
is set to text/html. In my browser they are shown as xml now - not really
what I was expecting. However the tabs seem to work (apart from the fact
that " is replaced with &quot; - not necessarily bad, but it is within
The doctype is not set either as Micah already mentioned.


-----Urspr√ľngliche Nachricht-----
Von: Micah Dubinko [] 
Gesendet: Dienstag, 7. Dezember 2004 03:16
Betreff: XML Serializers

Torsten Curdt wrote:

>> I'll peek around in [org.apache.cocoon.serialization.XMLSerializer] 
>> to see if I can figure out what's going on.
> Better spend the time in fixing the last
> few issues in 
> [org.apache.cocoon.components.serializers.XMLSerializer]. ...that means
> (again) our homegrown one is better. Maybe
> we should sort out the last few issues and
> then switch.

 I started looking into 30824, another issue with the old serializer. I 
tried it to see how it would work with the new one, but this didn't 
produce any DOCTYPE at all:

    <map:serializer logger="sitemap.serializer.xhtml" 
mime-type="text/html" name="xhtml" pool-grow="2" pool-max="64" 
pool-min="2" src="org.apache.cocoon.components.serializers.XMLSerializer">
      <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>

What is the proper way to deliver the requested DOCTYPE info to the new 



View raw message