Aha! Not on a Mac, but yes, it does seem to depend on what Ibm using to
open/view the xml.
Viewed in plain old vanilla Notepad, it looks fine (no extra lines).
Viewed in Notepad++ it has the extra lines.
In MSWord, if I change the extension to *.txt to fool it and open it directly,
it looks fine.
(The *.txt extension does not fool Notepad++, however. It still sees the
extra lines.)
If I open it in Notepad (no extra lines), copy it, and then paste it into
Notepad++ or into MSWord, the extra lines magically appear.
If I flip the switch in Word to show spaces, tabs, etc. I do in fact see two
of the B6 B6 symbol..
And yet if I then copy it out of Word and then paste it back into Notepad, the
extra lines magically disappear.
So, I guess this means itbs not really an XML question at all, itbs our
ancient enemy CR/LF. Grrrr.
Thanks, everyone.
Michele
From: Rick Quatro rick@xxxxxxxxxxxxxx
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, January 11, 2018 3:50 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: XML output ugly
Hi Michele,
Are you viewing the output on a Mac? I think Windows uses a carriage return +
line feed sequence (or vice versa), whereas the Mac just uses one of them.
There may be a line ending flag for xalan that you can set for Mac/Unix line
endings.
Rick
Rick Quatro
Carmen Publishing Inc.
rick@xxxxxxxxxxxxxxx<mailto:rick@xxxxxxxxxxxxxxx>
585-366-4017
|