MSXML based Standalone XSL Processor

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).

What you need first

  1. Some sort of windows

  2. MSXML3 July 2000 Beta, last spotted here.

Where to get

Binary

Source

Install

The binary should run straigth out of the box. The source contains a Visual C++ 6 project.

How to use

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>.

Copyright

GNU General Public Licence.

Learn more about XSL

Try these:

Standalone XSL Processor in Javascript

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>.

Standalone XSL Processecor in Perl

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