Skip to content

Releases: DesignLiquido/xslt-processor

v2.0.0

16 Sep 17:21

Choose a tag to compare

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

v1.2.8

10 Sep 17:26

Choose a tag to compare

What's Changed

Full Changelog: v1.2.7...v1.2.8

v1.2.7

30 Aug 22:14

Choose a tag to compare

  • Tag ordering;
  • Fixing issues with options parameters.

Full Changelog: v1.2.6...v1.2.7

v1.2.6

29 Aug 23:58

Choose a tag to compare

  • Solving cases where tag attributes were not correctly assigned to its respective output tags. (e507eb8)
  • Adding parent to attribute nodes. (a37a6f3)

Full Changelog: v1.2.5...v1.2.6

v1.2.5

27 Aug 22:41

Choose a tag to compare

  • Expanding the logic to write correct LMHT output. (157c9c8)
  • Separating the absolute match into two cases: simple "/" (axis "self") and others (axis "child"). (1971175)
  • Moving back the ExprContext to xpath directory. (a797cfe)
  • Adding the MatchResolver class, since Xslt class should only work with the XSLT operations, not with XPath matches. (a797cfe)
  • Update TODO.md (624668f)

Full Changelog: v1.2.4...v1.2.5

v1.2.4

20 Aug 22:39

Choose a tag to compare

What's Changed

Full Changelog: v1.2.3...v1.2.4

v1.2.3

03 Aug 21:37

Choose a tag to compare

What's Changed

Full Changelog: v1.2.2...v1.2.3

v1.2.2

01 Aug 16:58

Choose a tag to compare

What's Changed

Full Changelog: v1.2.1...v1.2.2

v1.2.1

30 Jul 17:48

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

22 Jul 21:56

Choose a tag to compare

Breaking Changes

  • xsltProcess method from Xslt class doesn't accept a parameters argument anymore. The parameters should be provided at the Xslt class constructor (options.parameters).

What's Changed

Full Changelog: v1.1.6...v1.2.0