cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <>
Subject Re: [C2] HTML Serializer
Date Tue, 03 Apr 2001 10:50:03 GMT

You can specify some properties for the HTML serializers. For more information, please take
a look
2. and

You will need to adjust the map:serializer for html in cocoon.xconf to set the parameters.


--- Paul Lamb <> wrote:
> I've been porting a C1 project over to C2 and have started cleaning up
> the loose ends, but I seem to be having problems getting the HTML
> serializer to produce the same output that C1 did.
> I'm using the latest C2 from CVS and I've added the following serializer
> in the sitemap and set it
> to be the serializer used.
> <map:serializer name="html-strict"   mime-type="text/html"
>   src="org.apache.cocoon.serialization.HTMLSerializer">
>   <doctype-public>-//W3C//DTD HTML 4.0//EN</doctype-public>
> <doctype-system></doctype-syst
> em>
>   <encoding>UTF-8</encoding>
> </map:serializer>
> Problem 1: The <DTD...> doesn't always show up in the resulting html
> file. It will usually be there on the first access, but after a refresh
> it's gone.
> Problem 2: The resulting HTML is formatted horribly, compared to the
> same output w/ C1. I'm using the same xsp and xsl files for both C1 &
> C2. With C2 I seem to have lots of extra whitespace--tabs, spaces and
> new lines.
> The main problem with the formatting is that I have a <br> that should
> come immediately after an <image...> tag. But with C2 I'm getting
> <img....>\n\t\t\t<br>\n.
> Outside these two problem, I'm amazed at how well C2 works. I can't
> believe the speed that I'm seeing, even without it having a cache.
> Paul Lamb
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

Davanum Srinivas, JNI-FAQ Manager

Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.

To unsubscribe, e-mail:
For additional commands, email:

View raw message