cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Xalan &#13; Problem
Date Wed, 12 Nov 2003 22:24:18 GMT
JD Daniels wrote:

>I found the thread:
>I think it is a bigger problem with xalan.... But I am clueless :)
>-----Original Message-----
>From: JD Daniels []
>Sent: Wednesday, November 12, 2003 1:54 PM
>To: Cocoon Users
>Subject: Xalan &#13; Problem
> I noticed a few releases ago that cocoon.xconf was peppered with &#13; at
>the end of every line.
>There was a post about this , and the consensus seemed to be not to worry
>about it. But now I am stuck. I am using woody and xsp together, so my forms
>are coming out:
>some text&#13;
>more text.&#13;
>a little more text&#13;
>So whats happening is everytime soemone edits something... the carriage
>returns are doubled.
>How can i make &#13; go away?

A colleague of mine encountered this already. IIRC, the Xalan 
serializers uses the line endings of the server platform, i.e. CR/LF on 
windows. This is not a problem for normal text, but when filling a 
textarea the CR/LF are sent back to the server, and the parser considers 
only LF as the line ending, and so inserts a &#13;

After a few rountrips on the form, you end up with lots of &#13;&#13;

IIRC, this is something along these lines.

Now, I don't know the solution, except filtering those &#13; when 
reading the request parameter.

Hope this helps,

Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -

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

View raw message