This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi! I already used Cocoon to convert XML to PDF on the fly with XSL (FOP) on web pages. Now I am searching for a way to do the same, but on a client in the command line. It would be necessary to create PDF using ... a) one XML-source to create one PDF-file b) one XML-source and different XSL-files to create multiple output (PDF) c) multiple XML-sources to create one or more PDF-files. The technology should moreover be able to create PDF-files on a more sophisticated level, which means with table of contents, text-anchors, links, ... Does anyone know a way how I can do that (maybe with the cocoon environment, XT by James Clark, ...)? Of course I don�t expect vaste explanations, just one or two valuable links or tipps. Hope someone can help me, Robito. P.S.: In the near future I will use XT to generate HTML from XML-sources.
Why not use the same FOP stylesheets and the FOP processor to generate the PDFs? I guess you'd only need to write a simple shell script and perhaps a simple "main" Java class to invoke the FOP processor.