I'm trying to learn how to use fop. My end goal is to be able to produce a pdf (table output) using results from a sql query. From what I've read, an xml doc must be converted to xsl. Then a stylesheet applied. Then run fop. Can someone offer advice on generating a pdf with tabular layout using the results of a mysql query? Or any advise on using fop? Some questions I have are: 1) What format needs to be used when generating the initial xml doc? 2) What are the stylesheets and how can they be generated?