Convert xml to html using XSLT stylesheet in node.js

Has anyone tried to convert an xml file to an html page using an XSLT stylesheet in node.js? My background is in Java. I usually use SAXON to convert XML to HTML web pages. I am new to node.js. I tried to implement this using several libraries like node_xslt, libxsltjs etc., but was not successful. If someone tried to use other libraries that work with the XSLT stylesheet, send the link. Any help would be greatly appreciated.

+4
source share
1 answer

If you want to use Saxon from the Node.js application, you basically have three options, none of which are perfect:

(a) invoke Java using various mechanisms.

(b) use the Saxon / C port for Node.js, which is being built here: https://github.com/rimmartin/saxon-node This is short-lived and I don’t know how far the project has come.

(c) wait for Saxon-JS to arrive soon. See http://dev.saxonica.com/blog/mike/2016/02/introducing-saxon-js.html

+3
source

All Articles