Wrox Programmer Forums
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2006, 08:58 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSL-FO

Hello everyone,

We are beginning to convert HTML files into PDF files and I recommended to use XSL-Fo. My question is what kind of technology do we need? I mean how can we transfer the HTML documents to PDF via XSL-FO. I don't ask you to teach me the XSL-FO but I need to have the environment info of this process. Thanks for your help.

Your attitude determines your altitude
__________________
Your attitude determines your altitude
 
Old July 19th, 2006, 10:04 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

First convert your HTML files to XHTML using the JTidy utility from W3C. Then convert the XHTML to XSL-FO using XSLT. I would think that someone must have already written stylesheets to do this, but I'm not aware of any. Try asking on the xsl-list at www.mulberrytech.com if google doesn't show anything up. Then convert the XSL-FO to PDF using an XSL-FO processor. There is a free one, FOP, and several commercial products, and although I haven't used them myself the impression I get from users is that it's worth paying the money.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old July 19th, 2006, 10:10 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mhkay
 First convert your HTML files to XHTML using the JTidy utility from W3C. Then convert the XHTML to XSL-FO using XSLT. I would think that someone must have already written stylesheets to do this, but I'm not aware of any. Try asking on the xsl-list at www.mulberrytech.com if google doesn't show anything up. Then convert the XSL-FO to PDF using an XSL-FO processor. There is a free one, FOP, and several commercial products, and although I haven't used them myself the impression I get from users is that it's worth paying the money.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
So that means as step by step
1) XHTML conversion via JTidy
2) XHTML to XSL-FO conversion via XSLT
3) and then convert it to PDF via FOP
Do I need to use Xerces and Xalan for the transformation?

Another question. I don't know if you are using Altova's XMLSpy. It has also an XML-FO tool but the company where I have been working by, has no licence for this feature of XMLSpy. Is it worth to use it?



Your attitude determines your altitude





Similar Threads
Thread Thread Starter Forum Replies Last Post
xHTML to XSL:FO to PDF NotesSensei XSLT 0 September 2nd, 2006 10:02 AM
xsl:fo with Select Birger XSLT 4 July 18th, 2006 11:38 AM
A good XSL-FO forum? lthompso XSLT 3 March 22nd, 2006 06:51 AM
XSL-FO Question gray XSLT 1 February 18th, 2005 11:31 AM
hello, some problems with XSL-FO LuisMM XSLT 4 December 19th, 2003 02:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.