On 11/22/06, param <[EMAIL PROTECTED]> wrote:
Firstly I am converting HTML object to corresponding XML file & then this XML file is converted to FO:XSL file. Using FOP I convert this XSL file into PDF using Tranformer.
I recently worked on a project using fop, we used the style sheet that the following article refers to: http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html?page=1 .... specifically the one called xhtml2fo.xsl in his examples: http://www.javaworld.com/javaworld/jw-04-2006/html/jw-0410-html.zip We ended up changing a few things, but out of the box it did most of what we wanted (tables were a bit dodgy, but using the trunk version of fop fixed that). Have you checked that the actual fo that you're producing actually has all the formatting tags that it should (ie. do the bits you expect to be underlined have: text-decoration="underline")? Is it spitting out lots of errors when you run the transform? If so, google will more than likely turn up an answer. Also, fop will be sensitive to the quality of the html you're sending to it, we run ours through jtidy to clean it up before we do do the xslt. If you're going to persist with fop, it might be worth directing your questions to the fop mailing lists, you'll find people there with more fop experience than on the slug list. When you do, posting error messages and/or examples of the code/xml will help get you more useful responses. http://xmlgraphics.apache.org/fop/maillist.html Cheers.....Steve -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
