Skip to content

v2.0.0

Choose a tag to compare

@leonelsanchesdasilva leonelsanchesdasilva released this 16 Sep 17:21
· 92 commits to main since this release

Breaking Changes

Please note that the xmlParse method now lives inside the XmlParser class:

import { Xslt, XmlParser } from 'xslt-processor'

// xmlString: string of xml file contents
// xsltString: string of xslt file contents
// outXmlString: output xml string.
const xsltClass = new Xslt();
const xmlParser = new XmlParser();
const outXmlString = xsltClass.xsltProcess(
	xmlParser.xmlParse(xmlString),
	xmlParser.xmlParse(xsltString)
);

If you're planning to update your project with this version, adjust your code as needed.

Starting on version 2 of this library, HTML is handled differently than XML, due to particularities in HTML such as tags that don't need to be closed.

Full Changelog: v1.2.8...v2.0.0