Hans, Change the HTML serializer in the sitemap to this:
<map:serializers default="html"> <map:serializer name="html" mime-type="text/html; charset=UTF-8" logger="sitemap.serializer.html" src="org.apache.cocoon.serialization.HTMLSerializer"> <!-- [AC] this is necessary to deliver the correct output. It will make sure that there are no extra linefeeds inserted in the code. --> <doctype-public>-//W3C//DTD HTML 4.0 Transitional//EN </doctype-public> <doctype-system>http://www.w3.org/TR/REC-html40/loose.dtd </doctype-system> <omit-xml-declaration>true</omit-xml-declaration> <encoding>UTF-8</encoding> <indent>1</indent> </map:serializer> </map:serializers> Maybe you can leave out <encoding>, the doctype's and the mime-type headers in your case. I needed them for a specific behaviour. Configuring the HTML serializer like this will keep Cocoon from inserting linefeeds. Good luck Arjé Cahn --------------------------------------------------------- Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 arje(at)hippo(dot)nl / www.hippo.nl -----Oorspronkelijk bericht----- Van: Hans-Michael Rupp [mailto:[EMAIL PROTECTED]] Verzonden: 05 June 2002 15:15 Aan: [EMAIL PROTECTED] Onderwerp: whitespace Hi We are trying to transform a jsp based application with a fairly complicated html design into a XML/XSP/XSLT based application. One problem we have is that the page design (which we cannot easily change) is severely disrupted by extra whitespace added during the transformation processes in Cocoon. E.g. <div class="bla"><a href="bla"><img src="blubber" /></a></div> is transformed to <div class="bla"><a href="bla"><img src="blubber" /></a> </div> which on some pages has catastrophic consequences for the layout. We have already used <xsl:strip-space elements="*" /> <xsl:output indent="no" /> in our stylesheets without any effect. Is there any way to preserve the whitespace exactly the way we want it? Many thanks, Hans -------------------------------------------- Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 ------------------------------------------ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>