Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.87k stars 601 forks source link

Can I use an xslt-file with xml2js? #550

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi I cannot find any information on the question in the title.

I have a bunch of xml-files that I want transformed in a node/express/ejs environment using the same xslt-file over and over again. (The files are all TEI-files containing marked up text)

I thought about using ejs and create a:

`

<% files.forEach(function (files) { %>

<%= <-- Enter transformed xml file here %>

<% }); %>

` I hope you can clear this up? best wishes, K

Omega-Ariston commented 4 years ago

Could you state your idea more clearly? Like, in this scenario, what from of input and output are you expecting? :)

Leonidas-from-XIV commented 4 years ago

Since the user was deleted in the meantime, I doubt we'll get much more information out of this.