Reputation: 3755
I used to use XML / XSLT to transform xml data to various formats and make the result conform to certain patterns using XSD. I found it to be very powerful. We now deal mainly with json data - and I see that there is an XSLT 3.0 version that supports json transformation. Saxon and QuiXSLT ( java ) and Exselt ( .Net ) support xslt 3.0 but first 2 are commercial versions and hellishly expensive.
Is there an alterntive to XSLT that supports transforming json data to json ( or other formats like HTML , CSV ) in node.js? Preferably free or not prohibitively expensive. Or maybe there is a free processor for xslt 3 that supports node.js
Thanks Marty
Upvotes: 3
Views: 1232
Reputation: 167716
SaxonJS 2 https://www.npmjs.com/package/saxon-js comes with its own xslt3
command line tool for Node.js https://www.npmjs.com/package/xslt3, so there is a pure Node.js solution by now to do (XSLT 3.0) transformations of JSON as the input and/or the output format.
Upvotes: 0