This is some simple C++ (javascript) code to demonstrate how to use MSXML as a stand alone XSL processor that can be called from the command line. It's base on MSXML3 July 2000 Beta, (hence works under windows only).
Some sort of windows
MSXML3 July 2000 Beta, last spotted here.
From the command line
msxml <xml-file> <xsl-file> [<output-file>]
processes <xml-file> with <xsl-file>. Output to stdout if <output-file> is not specified, otherwise output to <output-file>.
The same can be done with javascript using this code. Call from command line like this:
cscript msxml3.js <xml-file> <xsl-file> <output-file>applies stylesheet <xsl-file> to <xml-file> and stores output in <output-file>.
Likewise in Perl. Usage:
msxml3.pl <input.xml> <style1.xsl> [<style2.xsl> ...] [<output.xml>] Processes <input.xml> file using in sequence the stylesheets <style1.xsl>, <style2.xsl> ... and write output in file <output.xml> (or stdout if no third argument is given).
The code is here.
Last updated: 23 Dec 2000 webmaster