I am sure whether this is the right mailing list
for Xalan issues.
I found the line separator proccessing of
org.apache.xalan.serialize.SerializerToXML is weird.
//here are some lines of code from that
void writeNormalizedChars(char ch, int start, int
int end = start +
for (int i = start; i < end;
char c =
(CharInfo.S_LINEFEED == c)
If my original CDATA section has \r\n, the
output will become \r\r\n on Windows.
I think \r should be skipped first on
Windows(\n should be skipped on Mac) before writting out the normalized