Stefan Pietschmann wrote:
Hi,

i'm having a problem with the XMLSerializer:

Instead of the correct indentation of my xml files it inserts 	 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
Please direct this problem to dev-list or even better to bugzilla. I have the same problem with XConfTask - also outputs &#9; instead of tab character. I had no time to investigate this.

--
Leszek Gawron                                                 MobileBox
[EMAIL PROTECTED]                              http://www.mobilebox.pl

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



Reply via email to