Hi, I using Apache FOP for PDF generation, i have the XML with header and footer information in the bodycontent i have a placeholder, for eg,
Temp.xml <header> Sample Header </header> <bodycontent> [[bodycontent to be populated dynamically from DB]] </bodycontent> <footer> Sample Footer </footer> Temp.xsl, will have the XSL tags with the layout, styles, etc. Using Apache FOP API i need to fetch the data from the DB (using javax.sql), and replace the placeholder with the data in it and then use the XSL to apply the styles,etc to generate a PDF? I know the latter, i am not sure how to read the XML and replace the placeholder with the data fetched from DB using apache FOP. I know that Apache FOP uses SAX by default. Please do provide the code to parse the Temp.xml and replace the place holder with data using apache FOP. If there is any sample links please do provide that as well. Thanks, Rithu -- View this message in context: http://old.nabble.com/Populating-data-dynamically-from-the-DB-using-Apache-FOP-tp27542925p27542925.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
