I am doing a very simple xslt for a source node like:
<p>
<media type="photo" id="lr002662" rights="licensed">
<title>Logging in Canada</title>
</media>Logging is cutting down trees for <definition>
<word-term>lumber</word-term>
<word-definition>wood</word-definition>
</definition>. Loggers are also called <i>lumberjacks.</i>
</p>
I am running this source node on my xslt stylesheet, once in xmlspy, I got the following output:
<para>
<media type="photo" source="lr002662" rights="licensed">
<resource.title>Logging in Canada</resource.title>
</media>Logging is cutting down trees for <italic>lumber</italic> (wood). Loggers are also called <italic>lumberjacks.</italic>
</para>
But then I run this in command line with saxon9he.jar file using the same xslt stylesheet, I got the following:
<para>
<media type="photo" source="lr002662" rights="licensed">
<resource.title>Logging in Canada</resource.title>
</media>Logging is cutting down trees for
<italic>lumber</italic>
(wood)
. Loggers are also called <italic>lumberjacks.</italic>
</para>
As you can see, the text after the media tag now contains so many carriage returns in it, and that is not what I want. I've been using the XMLSpy so never noticed this problem. Could any experts suggest a way to debug or provide my xslt?