Alexey Tuboltsev
Alexey Tuboltsev

Reputation: 11

a standalone xslt javascript library?

this is my first post here

I am developing a set of scripts (JS/ExtendScript) for Indesign to automate catalogue production. The input data is xml. Sometimes it could be very handy to rearrange xml on an early stage with xslt but I can't figure out a way to do it. There are some js xslt libraries out there, but they all are basically wrappers for browser xslt engines that need an open browser window and a document in it.

I know I can always do an external xslt transformation with libproc or similar and even write a shell/batch script for it, but than it won't be a one click solution for my client anymore.

Questions: does anybody know a standalone js xslt module? Is there a way for a script to talk directly to Chrome(?) xslt engine without opening documents? Any other way to do it?

Thanks a lot! L

Upvotes: 0

Views: 663

Answers (1)

Loic
Loic

Reputation: 2193

I am guessing you will always need to output a XML file at some point. You can then as Jongware suggested use InDesign XSLT engine (you can even use a temporary document to import through XSLT and get the XML file exported for further processing). Another approach is to call a shell script through doScript and lay on a command line tool such as Saxon.

Upvotes: 0

Related Questions