Subject:saxon 9 linebreak in text mode Author:Kurt Wald Date:08 Feb 2008 12:16 PM
the newline.xsl uploaded with this posting should produce the text output:
with a single \n for the linebreak. When run with Saxon 9 inside the Stylus Studio 9r1 IDE however it produces \r\n as linebreak.
My guess is, that your Saxon wrapper uses a StreamResult object with a Writer object for output, which by default produces a system specific linebreak e.g. \r\n on windows or \n on Unix. If this is the case, replacing the Writer by an OutputStream should do the job.