https://github.com/sergi/xslty
Command-line XSLT 2.0 processor
https://github.com/sergi/xslty
Last synced: 12 months ago
JSON representation
Command-line XSLT 2.0 processor
- Host: GitHub
- URL: https://github.com/sergi/xslty
- Owner: sergi
- License: mpl-2.0
- Created: 2013-08-10T19:46:30.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-29T18:09:07.000Z (about 9 years ago)
- Last Synced: 2025-07-20T03:57:46.800Z (12 months ago)
- Language: JavaScript
- Size: 1.16 MB
- Stars: 13
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XSLTy
Xslty is a simple command-line utility that transforms XML using [XSLT 2.0](http://www.w3.org/TR/xslt20/) and outputs it to `stdout`. I made it to scratch my own itch, so it might not suit your needs, but it probably will if you just need to transform XML.
## Requirements
XSLTy requires [PhantomJS](http://phantomjs.org/) to be installed. This is because XSLTy uses Saxon CE to parse XSLT 2.0, and that's a browser library.
In case you don't have PhantomJS installed, you can install it easy on OSX:
```
brew update && brew install phantomjs
```
See [PhantomJS download page](http://phantomjs.org/download.html) for other platforms
## Installation
```
npm install xslty -g
```
## Usage
```
xslty source.xml style.xsl
```
The order of parameters is important. The source XML has to always go first, followed by the XSLT transformation file. Any result of the transformation will come out to `stdout`, while errors will come out to `stderr`, as expected.
## License
Mozilla Public License 2.0