node package manager

xsltproc

xsltproc Build Status NPM version

Wrapper for xsltproc.

Getting Started

First install the xsltproc if not already installed on your system read installing an XSLT processor. Install the module with: npm install xsltproc --save

var xsltproc = require('xsltproc')
 
var xslt = xsltproc.transform('stylesheet.xsl', 'data.xml');
 
xslt.stdout.on('data', function (data) {
  console.log('xsltproc stdout: ' + data);
});
 
xslt.stderr.on('data', function (data) {
  console.log('xsltproc stderr: ' + data);
});
 
xslt.on('exit', function (code) {
  console.log('xsltproc process exited with code ' + code);
});
var xsltproc = require('xsltproc')
 
xsltproc.transform('stylesheet.xsl', 'data.xml', {
  "profile": true,
  "output": "test.txt",
  "stringparam": {
    "key": 'paramName',
    "val": 'paramValue',
  },
});

Release History

  • v0.0.3:
    • added stringparameter @spino9330
  • v0.0.2:
    • update packages
  • v0.0.1:
    • initial release

License

Copyright (c) 2014 Ilya Rogov. Licensed under the MIT license.