Page 1 of 1

Garbage Characters in Tool Output

Posted: Thu May 22, 2003 8:27 pm
by travgator
I'm trying to integrate the MSXSL tool into TextPad, in order to insert line breaks into an XML file. I can run the tool from the "Tools|Run..." as follows:

Command: C:\WINNT\msxsl.exe
Parameters: $File identity.xsl -v
Initial Folder: C:\WINNT
Capture Output: checked

This works correctly. The XML is output exactly as intended. When I run the same thing after adding it to the "Configure|Preferences..., Tools" option as follows:

Command: C:\WINNT\msxsl.exe
Parameters: $File identity.xsl -v
Initial Folder: C:\WINNT
Capture Output: checked

it looks like Null, code=0, characters get inserted after every output character. Has anyone else run into a problem like this? Or does anyone have a suggestion for fixing this? Thanks.

Posted: Fri May 23, 2003 8:54 am
by MudGuard
What output character set do you specify in your xsl?
Could it be UTF-16?

Posted: Fri May 23, 2003 1:28 pm
by travgator
I wasn't specifying an output method. When i add an output method to my xsl files as follows:

<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" encoding="UTF-8"/>

the output appears correctly. So i'm a little confused as to why it appears correctly under "Tools|Run..." regardless, but not when i set it up as named tool. But at least I have a workaround now. Thanks.

Any ideas for tweaking TextPad so I don't have to explicitly set the encoding with my xsl file?

Posted: Fri May 23, 2003 4:05 pm
by MudGuard
which version of msxml do you have?

run
msxsl -?
to find out...

I have version 4.0 - but I am not sure whether this is really the latest...

Posted: Fri May 23, 2003 4:21 pm
by travgator
i have version 4 as well. btw, i think 4 is the latest.