I have these two lines in my Korn Shell script, which executes from a virtual directory of IIS, in addition to some preparation lines and cleanup lines. Note: $TMP=C:\Program Files\TestApp\cgi-bin\TEMP.3616 in this instance.
"${CGI_DIR}/LogConverter.exe" "${TMP}" > C:/temp/HandleLogs.$$.xmlC:/nxslt-2.0.1/bin/nxslt2.exe C:/temp/HandleLogs.$$.xml C:/temp/TRR_XML_KML.xsl
Why does nxslt2 give me this error message? An error occurred while compiling stylesheet 'file:///C:/temp/TRR_XML_KML.xsl': System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\TestApp\cgi-bin\TEMP.3616\m70rknvy.tmp'.[1] + Done(134) ? 2036 Abort C:/nxslt-2.0.1/bin/nxslt2.exe
I do not give nxslt2 $TMP anywhere, but it still tries to use this. And why is nxslt2 trying to create a temporary file m70rknvy.tmp? Is it because my stylesheet has a msxsl:script element.
Thanks,
/Daniel
I found the solution.
Its the variable TMP. Some library used by nxslt depends on an env variable called TMP. Since the ksh script is over writing it, its a problem.
Just renaming the TMP variable to something like FILE_PREFIX solves the problem.