what does msxsl return when it encounters an error?
in the msxsl source code (downloaded) it returns (S_OK != hr) that means
it should 0(false) if no error and -1/non-zero (true) if error occurs.

But I'm not able to trap this in my DOS batch script

My batch script looks like this..

msxsl a.xml b.xslt -o c.xml
if not errorlevel 0 goto LogError
goto EverythingFine
...
...
LogError:
...
EverythingFine:
...

Any Idea?