Skip to content
Advertisement

XML to postscript using xsltproc

I’m trying to produce a postscript file for an XML document. I can produce a plain text or an html output using xsltproc.

JavaScript

Is there a way to produce a postscript file from command line or programmatically using C?

Advertisement

Answer

One possibility to achieve this is converting the XML-file to XSL-FO and then use Apache-FOP to transform it to a Postscript-file with

JavaScript

At the moment I couldn’t find a simple XSL-file on the net for this task, but this depends on what you like the output to look anyway. Creating a basic XSLT for this transformation should not be that hard.

EDIT: Just for completeness: possible output-formats of Apache-FOP are

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement