Releases: DesignLiquido/xslt-processor
Releases · DesignLiquido/xslt-processor
v2.0.0
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
What's Changed
- HTML input with
<!DOCTYPE html>defined returns empty output. by @leonelsanchesdasilva in #73
Full Changelog: v1.2.7...v1.2.8
v1.2.7
- Tag ordering;
- Fixing issues with
optionsparameters.
Full Changelog: v1.2.6...v1.2.7
v1.2.6
- 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
- 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
ExprContexttoxpathdirectory. (a797cfe) - Adding the
MatchResolverclass, sinceXsltclass 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
v1.2.3
v1.2.2
What's Changed
- Moving
domTraverseElementstoXNodeclass. by @leonelsanchesdasilva in #67
Full Changelog: v1.2.1...v1.2.2
v1.2.1
What's Changed
- XPath
current()function by @leonelsanchesdasilva in #66
Full Changelog: v1.2.0...v1.2.1
v1.2.0
Breaking Changes
xsltProcessmethod fromXsltclass doesn't accept aparametersargument anymore. The parameters should be provided at theXsltclass constructor (options.parameters).
What's Changed
- Revamping Expression Context, special operator for XPath, etc. by @leonelsanchesdasilva in #65
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #64
Full Changelog: v1.1.6...v1.2.0