When asked to write out a newline character to a stream the serializer writes out a carriage-return/newline combination on Windows. I suspect that all other platforms write out a single newline.
When reading in XML input a carriage-return/newline combination is normalized to a newline and this transformation is undone, so I could argue that we are safe to write out just a newline for XML output. What about TEXT or HTML output? Is there a requirement here to write out a carriage-return/newline combination rather than just a newline? This could allow a minor (probably very minor) performance improvement. The ToStream.character(char [] , int, int) method collects clean characters until it hits a dirty one that needs processing. So such a change would mean fewer calls to the underlying java.io.Writer because newline characters would not trigger a write. Second minor point is that I think it would be nice to have the output be the same on all platforms. Opinions? Brian Minchau XSLT Development, IBM Toronto e-mail: [EMAIL PROTECTED] "If you can't find a flaw in someone then there must be something wrong with them."
