Changeset 4222

Show
Ignore:
Timestamp:
04/24/08 13:06:32 (2 months ago)
Author:
pmoura
Message:
Corrected the file name extension used for the output files generated by the "lgt2txt.js" script.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/xml/lgt2txt.js

    r4220 r4222  
    103103    if (FSObject.GetExtensionName(file) == "xml") { 
    104104        WScript.Echo("  converting " + file); 
    105         var html_file = directory + "\\" + FSObject.GetBaseName(file) + ".html"; 
     105        var txt_file = directory + "\\" + FSObject.GetBaseName(file) + ".txt"; 
    106106        switch (processor) { 
    107107            case "msxsl" : 
    108                 WshShell.Run("msxsl -o \"" + html_file + "\" \"" + file + "\" \"" + xslt + "\"", true); 
     108                WshShell.Run("msxsl -o \"" + txt_file + "\" \"" + file + "\" \"" + xslt + "\"", true); 
    109109                break; 
    110110            case "xsltproc" : 
    111                 WshShell.Run("xsltproc -o \"" + html_file + "\" \"" + xslt + "\" \"" + file + "\"", true); 
     111                WshShell.Run("xsltproc -o \"" + txt_file + "\" \"" + xslt + "\" \"" + file + "\"", true); 
    112112                break; 
    113113            case "xalan" : 
    114                 WshShell.Run("xalan -o \"" + html_file + "\" \"" + file + "\" \"" + xslt + "\"", true); 
     114                WshShell.Run("xalan -o \"" + txt_file + "\" \"" + file + "\" \"" + xslt + "\"", true); 
    115115                break; 
    116116            case "sabcmd" : 
    117                 WshShell.Run("sabcmd \"" + xslt + "\" \"" + file + "\" \"" + html_file + "\"", true); 
     117                WshShell.Run("sabcmd \"" + xslt + "\" \"" + file + "\" \"" + txt_file + "\"", true); 
    118118                break; 
    119119        }