# @informatix8/gulp-saxon-xslt

> Gulp plugin for XML Transformation via Saxon

Latest version **3.0.0** (published 2025-02-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install @informatix8/gulp-saxon-xslt
pnpm add @informatix8/gulp-saxon-xslt
yarn add @informatix8/gulp-saxon-xslt
bun add @informatix8/gulp-saxon-xslt
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2025-02-05 |
| First published | 2019-11-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18.20.0 |
| Dependencies | 6 |
| Unpacked size | 321.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mjr |
| Maintainers | informatix8 |

## Links

- npm: https://www.npmjs.com/package/@informatix8/gulp-saxon-xslt
- Repository: https://github.com/informatix8/gulp-saxon-xslt
- Homepage: https://github.com/informatix8/gulp-saxon-xslt#readme
- Issues: https://github.com/informatix8/gulp-saxon-xslt/issues
- npm.io page: https://npm.io/package/@informatix8/gulp-saxon-xslt

## Dependencies (6)

- [rimraf](https://npm.io/package/rimraf.md) ^5.0.0
- [through2](https://npm.io/package/through2.md) ^4.0.0
- [vinyl-fs](https://npm.io/package/vinyl-fs.md) ^4.0.0
- [temporary](https://npm.io/package/temporary.md) ^1.0.1
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2
- [plugin-error](https://npm.io/package/plugin-error.md) ^2.0.1

## Recent versions

- 3.0.0 (latest) — 2025-02-05
- 2.0.0 — 2020-03-26
- 1.0.2 — 2019-11-26
- 1.0.1 — 2019-11-25
- 1.0.0 — 2019-11-25

## README

# Gulp Saxon XSLT

Bring your own Saxon library to transform XML with XSL 2 or 3.

> <span style="color:red;text-transform:uppercase;">! Important</span>  
> This module only supports ESM.

## Features

- Easily use `<xsl:import />` to take advantage of other external libraries
- Supply parameters (variables) to the XSL file
- Splitting output via `<xsl:result-document>` adds documents to the gulp stream
- Supports DTDs referenced from XML
- Handle your own error events

## Usage

### Install

```shell
npm install @informatix8/gulp-saxon-xslt --save-dev
```

## Example

```javascript
import gulp from 'gulp';
import xslt from '@informatix8/gulp-saxon-xslt';

export function xslt() {
  return gulp
    .src('*.xml', { buffer: false })
    .pipe(
      xslt({
        jar: 'saxon9he.jar',
        xsl: 'stylesheet.xsl',
        params: {
          param1: 'foo',
          param2: 'bar'
        },
        debugMode: false,
        abortOnError: true
      })
    )
    .on('end', function handleEnd() {
      console.log('XSLT Ended');
    })
    .on('error', function handleError(err) {
      console.log('Caught Error');
      console.error(err);
    })
    .pipe(gulp.dest('dist/'));
}
```

## Release

```shell
git tag -a vX.Y.Z
git push origin master
git push origin --tags
npm publish --access=public .
```

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