the newline.xsl uploaded with this posting should produce the text output:
first line
second line
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.
Kurt Wald
newline.xsl demo stylesheet
|