Please use the Saxonica forum at saxonica.plan.io for saxon-specific questions, and SourceForge for general XSLT questions.
XML normalizes newlines to a single x0A character. If you just want a new line, output x0A. If you try to output x0D, it is output as a character reference in order to preserve it through end-of-line normalization when the XML file is re-parsed. This is mandated by the W3C specification.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using Saxon to transform a xml file into another using this xsl stylesheet:
So I am expecting to get something like that:
But the result is:
I am using the java virtual machine, with the following options:
java -cp saxon9he.jar net.sf.saxon.Transform -t -s:myInput.xml -xsl:mystylesheet.xsl -o:c:myoutput.xml
Thanks in advance for any help.
Last edit: Felix C 2016-03-03
Please use the Saxonica forum at saxonica.plan.io for saxon-specific questions, and SourceForge for general XSLT questions.
XML normalizes newlines to a single x0A character. If you just want a new line, output x0A. If you try to output x0D, it is output as a character reference in order to preserve it through end-of-line normalization when the XML file is re-parsed. This is mandated by the W3C specification.
Thank you very much!!