Package Exports
- xslt
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xslt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
xslt
A simple wrapper around browser based xslt. Includes some cleanup options to help normalize the output across browsers.
Quick start
Several options are available to get started:
- Download the latest release.
- Clone the repo:
git clone https://github.com/murrayju/xslt.git
. - Install with Bower:
bower install xslt
. - Install with npm:
npm install xslt
.
Example
options = {
fullDocument: false, // Is the output a complete document, or a fragment?
cleanup: true, // false will disable all of the below options
removeDupNamespace: true,
removeDupAttrs: true,
removeNullNamespace: true,
removeAllNamespaces: false,
removeNamespacedNamespace: true
};
outputXmlString = xslt(inputXmlString, xslString, options);