Changeset 4222
- Timestamp:
- 04/24/08 13:06:32 (2 months ago)
- Files:
-
- 1 modified
-
trunk/xml/lgt2txt.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xml/lgt2txt.js
r4220 r4222 103 103 if (FSObject.GetExtensionName(file) == "xml") { 104 104 WScript.Echo(" converting " + file); 105 var html_file = directory + "\\" + FSObject.GetBaseName(file) + ".html";105 var txt_file = directory + "\\" + FSObject.GetBaseName(file) + ".txt"; 106 106 switch (processor) { 107 107 case "msxsl" : 108 WshShell.Run("msxsl -o \"" + html_file + "\" \"" + file + "\" \"" + xslt + "\"", true);108 WshShell.Run("msxsl -o \"" + txt_file + "\" \"" + file + "\" \"" + xslt + "\"", true); 109 109 break; 110 110 case "xsltproc" : 111 WshShell.Run("xsltproc -o \"" + html_file + "\" \"" + xslt + "\" \"" + file + "\"", true);111 WshShell.Run("xsltproc -o \"" + txt_file + "\" \"" + xslt + "\" \"" + file + "\"", true); 112 112 break; 113 113 case "xalan" : 114 WshShell.Run("xalan -o \"" + html_file + "\" \"" + file + "\" \"" + xslt + "\"", true);114 WshShell.Run("xalan -o \"" + txt_file + "\" \"" + file + "\" \"" + xslt + "\"", true); 115 115 break; 116 116 case "sabcmd" : 117 WshShell.Run("sabcmd \"" + xslt + "\" \"" + file + "\" \"" + html_file + "\"", true);117 WshShell.Run("sabcmd \"" + xslt + "\" \"" + file + "\" \"" + txt_file + "\"", true); 118 118 break; 119 119 }
