John Brown schrieb: > On Tue, 6 Nov 2007 22:16:05 +0100, Jeremias Maerki wrote: >> Can you please post a sample FO file? I don't want to waste too much >> time trying to reproduce your processing chain. >> >> Jeremias Maerki >> > > I should have posted that I "solved" my problem by removing the xml:lang > attribute(or whatever it is called) that Xalan did not like. > > Changing > to > > > wherever it occurred allowed fop-0.94 to process the file, although in my > estimation, fop-0.20.5 produced a PDF that was probably closer to the > original Word .DOC file. > > I now understand that the real solution is a stylesheet for transforming > the HTML files produced by Word. The stylesheet that I am using is for > plain XHTML as produced by Tidy. > > OpenOffice Writer does a better job of converting the PDF. It seems to > recognize the colours (syntax highlighting - C++ textbook) but not the > fonts (Verdana, Courier New, among others). Fop gave me a > black-and-white PDF. > > Anyway, thanks for your response. You can consider this issue closed, > but feel free to post if you know of a free (as in free beer) stylesheet > that can transform Word HTML files.
If you use Word 2003, you can use http://www.renderx.com/tools/word2fo.html It needs a bit of patching to work with FOP, but it's not too hard to do (unfortunately I don't have the required patch here right now). Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
