From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Its perfectly feasible to go from XHTML to PDF. The correct description of how to do this is;


XHTML --> XSL-FO --> PDF

The 1st transformation converts XHTML to XSL-FO using an XSL stylesheet. There are stylsheet in the public domain that do this for you. I believe theres one available on renderX's site www.renderx.com

The 2nd part is where FOP does it magic to render a XSL-FO document to PDF.

Chris

_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband
--- Begin Message --- To anyone who may advice: I'm currently working on a project that generates reports (in JSP, thus displayed as HTML). I am studying the feasibility of converting these reports to PDF via FOP (HTML/XHTML -> PDF), in which no additional coding to format each and every reports is required (but maybe a class to call the transformation/ parsing). I read in the documentation that we can run FOP in the following manner: Fop -xsl foo.xsl -xml foo.xml -pdf foo.pdf. Thus, if I assume my reports are XHTML, can I use the similar command to achieve the above goal, in which I need to create an XSL to map XHTML to FOP? Can anyone advice whether it's feasible to implement the above via FOP and how can I do that? Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to