Should be

> <map:serializer logger="sitemap.serializer.html" mime-type="text/html"
> name="html" pool-grow="4" pool-max="32" pool-min="4"
> src="org.apache.cocoon.serialization.HTMLSerializer">
>      <buffer-size>1024</buffer-size>

<indent>no</indent>

> </map:serializer>


Hope it works,


Joerg

Sonny Sukumar wrote:

Sure, Joerg, here's the html serializer config:


<map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer" indent="no">
<buffer-size>1024</buffer-size>
</map:serializer>


In the last transform (XSL stylesheet) before getting to the html serializer, we've also set <xsl:output indent="no"/>, but still no luck. It doesn't seem like an indentation problem...

Note that there's no whitespace between the tags before the html serializer, but most of the tags appear on their own lines when serialized!! If I could just prevent the html serializer from introducing this whitespace, this problem would be solved (I manually edited the resulting file, taking out the whitespace, and it displays correctly in IE).

From: Joerg Heinicke <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html serializer problem
Date: Sat, 09 Aug 2003 03:24:30 +0200

Can you show the indent="no" configuration for the serializer? Have you done it in the sitemap or in the stylesheet?

Joerg

Sonny Sukumar wrote:

Hi guys,

I'm using the HTML serializer to output an XHTML doc at the end of a pipeline, but it puts line breaks in the doc it outputs that cause IE to display the output incorrectly.

For example, the XHTML doc that goes into the HTML serializer has the following in it:

<tr><td valign="top"><img height="30" width="30" src="spacer.gif" border="0"/></td>

but it's serialized like this:

<tr>
<td valign="top">
<img height="30" width="30" src="myPic.gif" border="0"/>
</td>

Note that I've set indent="no" for the HTML serializer, but that doesn't fix this problem. I really need to fix this to get it to display correctly in IE (the browser we care most about by far).

If we get the output to come without *ANY* whitespace between the tags, then that would be great. Is there any way to do this??

Thanks!

Sonny


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to