XJSLT is an XSLT 2.0 to JavaScript transpiler that compiles XSLT stylesheets into executable JavaScript code for Node.js or browser environments. Version 1.0.0, released as a stable first release, depends on fontoxpath for XPath evaluation. It claims faster performance than SaxonJS and supports most XSLT 2 features, though some edge cases and features like analyze-string and tunneled parameters are not yet implemented. It provides a CLI for compilation and transformation, and supports generating standalone scripts for cloud functions or browser use. Written in TypeScript with full type declarations, and requires Node.js >=18.
npm install xjsltNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles an XSLT stylesheet string and applies it to an XML string, outputting the transformation result.
Recompile stylesheets after upgrading xjslt.
Update Node.js to version 18 or later.
Use alternative XSLT constructs or wait for future release.
Use global parameters or xsl:with-param with direct binding.
Use default output behavior; custom output methods may not work.
npm install fontoxpath
Use the exported compileStyleSheet and executeStyleSheet functions instead.
Upgrade Node.js to version >=18.