XSL-FO (FOP) <i>is</i> the tool that allows you to do this, but generally you would have to write the stylesheet (XSL-FO) that will specify the actual transformation to PDF.
XSL-FO is the xsl language extension, FOP is the tool or API which transforms the XML to PDF using XSL-FO.
FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects (XSL-FO) and the world's first output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, SVG, XML (area tree representation), Print, AWT, MIF and TXT. The primary output target is PDF. - from
Thanks for all your responses. But I think I havent been clear about what I was asking.
When I was asking about XSL-FO transformation over 2 XML documents, I didnt mean using the same stylesheet for 2 or more XML documents.
I meant to ask if XSL-FO could render 2 XML documents simultaneously, ie these 2 XML documents will have different XML elements and I want to use the same XSL-FO to render both - so to print out one PDF file with information from 2 different XML instances.
If this is possible, what are the available tools?
My XSL file does have an fo:root element and works completely fine when rendering a single XML file. When running the above line, it only renders the latest XML file.
Jonty, if ur doing something that im not, let me know.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.