cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Pietschmann" <sp186...@inf.tu-dresden.de>
Subject XMLSerializer replaces whitespaces with &#9;
Date Wed, 01 Dec 2004 18:57:36 GMT
Hi,

i'm having a problem with the XMLSerializer:

Instead of the correct indentation of my xml files it inserts &#9; for each
whitespace (after linebreaks I think).
The source of an xHTML-file which is returned now looks like this:

.
&#9;&#9;<table>
&#9;&#9;&#9;<tr>
&#9;&#9;&#9;&#9;<td width="75">
&#9;&#9;&#9;&#9;&#9;<b>User:</b>
&#9;&#9;&#9;&#9;</td>
&#9;&#9;&#9;&#9;<td>
&#9;&#9;&#9;&#9;&#9;<input name="ID" type="text" size="15" />
&#9;&#9;&#9;&#9;</td>
&#9;&#9;&#9;</tr>
.

Of course this messes up everything (apart from the fact that the browser
don't interpret those xhtml files right anymore).

I've neither had this behaviour with JDK 1.4.2 and Cocoon 2.1.5 or JDK 1.5
and Cocoon 2.1.6, so it must be the combination of Java 5 and Cocoon 2.1.6.
I've tried this on another computer and it's reproducible.

Here's the configuration in the sitemap:

<map:serializer name="xhtml.full"
src="org.apache.cocoon.serialization.XMLSerializer" mime-type="text/html"
pool-grow="2" pool-max="64" pool-min="2">
	<doctype-public>-//W3C//DTD XHTML 1.0
Transitional//EN</doctype-public>
	
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doc
type-system>
	<encoding>ISO-8859-1</encoding>
	<indent>yes</indent>
</map:serializer>

Can anyone help? Is it some parameter for the XMLSerializer?
(I already tried with yes and no for the indent parameter)

Thanx a lot,
Stefan



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message