xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex McLintock <a...@OWAL.co.uk>
Subject Re: Need help:converting xml => fo => pdf
Date Mon, 02 Dec 2002 19:27:43 GMT
At 18:56 02/12/02, ANIL B G wrote:
>Is there any simple way to convert file.xml to file.fo ??
>Is there any tool that does this job or do I need to write my own Java 
>parser for converting file.xml to file.fo

Hello Anil,

There is no automatic way of converting some XML to FO because no computer 
program can magically come up with the way that *you* want it printed out.
You have to give it some help as to how to display the XML.

Remember that file.fo is in XML format too. You don't have to write any 
Java to convert one XML format to another XML format if you don't want to. 
You can use a technology called XSLT. (Or XSL depending on how picky you 
want to be).

This basically has (XML) scripts which say "when you see this sort of XML 
tag, output that sort of XML".

So for the most part you would take your XML as input, and output the 
equivalant XSL:FO type output.

Since FOP already uses an XSLT engine (Xalan by default) you can just tell 
it "take this XML file as input, and use this XSLT file to transform it, 
and output PDF", but you can output the .fo file too if you want.

If possible when asking this sort of question please say what documentation 
you have already read, because this sort of information should be in there 

Thanks and goodluck


Openweb Analysts Ltd, London.
Software For Complex Websites http://www.OWAL.co.uk/
Open Source Software Companies please register here 

To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org

View raw message