Garbage Characters in Tool Output

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
travgator
Posts: 3
Joined: Thu May 22, 2003 8:18 pm

Garbage Characters in Tool Output

Post 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.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

What output character set do you specify in your xsl?
Could it be UTF-16?
travgator
Posts: 3
Joined: Thu May 22, 2003 8:18 pm

Post 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?
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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...
travgator
Posts: 3
Joined: Thu May 22, 2003 8:18 pm

Post by travgator »

i have version 4 as well. btw, i think 4 is the latest.
Post Reply