# xsltproc

> Wrapper for xsltproc.

Latest version **0.0.4** (published 2017-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install xsltproc
pnpm add xsltproc
yarn add xsltproc
bun add xsltproc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-10-31 |
| First published | 2014-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Ilya Rogov |
| Maintainers | ilyar |

## Links

- npm: https://www.npmjs.com/package/xsltproc
- Repository: https://github.com/ilyar/xsltproc
- Issues: https://github.com/ilyar/xsltproc/issues
- npm.io page: https://npm.io/package/xsltproc

## Dependencies (1)

- [which](https://npm.io/package/which.md) ^1.3.0

## Recent versions

- 0.0.4 (latest) — 2017-10-31
- 0.0.3 — 2016-09-17
- 0.0.2 — 2014-05-19
- 0.0.1 — 2014-03-17

## README

# xsltproc

[![Build Status](https://secure.travis-ci.org/ilyar/xsltproc.svg?branch=master)](http://travis-ci.org/ilyar/xsltproc)
[![Test Coverage](https://codeclimate.com/github/ilyar/xsltproc/badges/coverage.svg)](https://codeclimate.com/github/ilyar/xsltproc/coverage)
[![NPM version](https://badge.fury.io/js/xsltproc.svg)](http://badge.fury.io/js/xsltproc)

Wrapper for xsltproc.

## Getting Started

First install the xsltproc if not already installed on your system read [installing an XSLT processor](http://www.sagehill.net/docbookxsl/InstallingAProcessor.html).
Install the module with: `npm install xsltproc --save`

```javascript
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);
});
```

Example using a string parameter:

```javascript
var xsltproc = require('xsltproc')

xsltproc.transform('stylesheet.xsl', 'data.xml', {
  "profile": true,
  "output": "test.txt",
  "stringparam": {
    "key": 'title',
    "val": 'This is a single parameter passed as subtitle----anvidsahviulasdhvklasdbcuw'
  },
});
```

It is also possible to use multple string parameters:

```javascript
var xsltproc = require('xsltproc')

xsltproc.transform('stylesheet.xsl', 'data.xml', {
  "profile": true,
  "output": "test.txt",
  "stringparam": [
    {
      "key": 'title',
      "val": 'This is a single parameter passed as subtitle----anvidsahviulasdhvklasdbcuw'
    },
    {
      "key": 'anotherTitle',
      "val": 'This is a another single parameter passed'
    }
  ],
});
```

## Release History

- **v0.0.4**:
    - added multiple string parameters support @rrgarciach
- **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.

---
_Source: https://npm.io/package/xsltproc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
