# node_xslt

> A simple XSLT package for node.js

Latest version **0.1.9** (published 2013-08-30) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2013-08-30 |
| First published | 2011-10-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.1.93 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 70 |
| Author | Brian Suh |
| Maintainers | bahblah |

## Links

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

## Recent versions

- 0.1.9 (latest) — 2013-08-30
- 0.1.8 — 2013-07-28
- 0.1.7 — 2012-07-21
- 0.1.6 — 2012-04-12
- 0.1.5 — 2012-04-04
- 0.1.4 — 2012-01-22
- 0.1.3 — 2011-12-18
- 0.1.2 — 2011-12-01
- 0.1.1 — 2011-10-14

## README

# node_xslt

    xslt = require('node_xslt')

    stylesheet = xslt.readXsltString(string);
    // readXsltString
    // Arguments: string containing XSLT
    // Returns: stylesheet object

    stylesheet = xslt.readXsltFile(filename);
    // readXsltFile
    // Arguments: filename to file containing XSLT
    // Returns: stylesheet object

    document = xslt.readXmlString(string);
    // readXmlString
    // Arguments: string containing XML
    // Returns: document object

    document = xslt.readXmlFile(filename);
    // readXmlFile
    // Arguments: filename to file containing XML
    // Returns: document object

    htmlDocument = xslt.readHtmlString(string);
    // readHtmlString
    // Arguments: string containing HTML
    // Returns: document object

    htmlDocument = xslt.readHtmlFile(string);
    // readHtmlFile
    // Arguments: filename to file containing HTML
    // Returns: document object
    
    transformedString = xslt.transform(stylesheet, document, parameters);
    // transform
    // Arguments:
    //  * stylesheet: stylesheet object
    //  * document: document object
    //  * parameters: an array of parameters to be passed to the stylesheet. length must be multiple of 2.
    //        Example: ['param1Name', 'param1Value', 'param2Name', 'param2Value']

## Requirements

* [libxml2](http://www.xmlsoft.org/) (libxml2-dev package for Debian-based distros)
* [libxslt](http://xmlsoft.org/xslt/index.html) (libxslt-dev package for Debian-based distros)
* [libexslt](http://xmlsoft.org/xslt/EXSLT/) (libxslt-dev package for Debian-based distros)
* xml2-config (Needs to be on PATH)

## Installation

**npm**

    npm install node_xslt

**source**

    In the root directory, run `node-gyp rebuild` to generate
    ./build/Release/node_xslt.node

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