XML serializers generally convert the XML newline character (0x0a, LF) into
whatever is the native representation on the platform they're running on,
just as XML parsers will normalize most of the standard newline
representations (CR, LF, CRLF, and recently NEL) into an XML newline.

If you're using Xalan-J, you could try setting your Java environment's
value of the line.separator property (assuming your JVM's security manager
permits that; not all do) and see if that allows you to control how
newlines are written out.

If not, your best bet may be to have Xalan output to SAX and route that
into your own serializer which handles this the way you want it to.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk

Reply via email to