gulp-import-xslt
Import several xslt files into a single file, one by one, rebasing urls and inlining import/include nodes
Install
Install with npm.
npm install --save-dev gulp-import-xslt
Usage
Gulpfile.js
:
var gulp = ;var importXslt = ; gulp;
Options
prettyMethod
('minify'/'prettify') to pretty-print or minify text in XSLT. It based on node-js pretty-data plugin.
Examples
In case this is templates/sample.xsl
:
My sample
And this is templates/page.xsl
:
Hello world!
And result is:
Hello world! My sample
Now, run the command gulp
to get the combined xslt file.
License
Released under the MIT license.