I am getting comfortable running and using fop. Now I need some advice on the best way to use it to create my report. It seems to me that a table at the start of each page will work, but I have read that FOP has so much other capability, that tables are seldom needed. Let me briefly describe my design, and someone may give me some feedback.
 
Survey participants have evaluated automobiles by sitting in different positions and answering 15 questions - either voting for 0 - 10, or marking an image of the car. Then for each question, they can also offer text comments. The report will summarize and assemble this data. For various cars, there are one, two or three rows, always a left seat and a right seat. The votes are tabulated in histograms, and the image marks are put onto svg images of the car, one for each question and position. A four seat car would have 60. Comments are presented as a bulleted list.
 
The report would start one page for each seating row, with two columns, left column for the left seat and right column for the right seat. The page title states the car name and the specific question. The column heading states the position. Then the column would have either a histogram or a car image, followed below by a bulleted list of comments. Same thing repeated on the right column for the right seating position. The number of respondents may be different for each position.
 
The data is available as an xml document. I will write an xslt stylesheet to transform the data to fo.
 
I can see how to do this with a table, much like how I could do it with html. The car images and histograms would be in-line svg documents.
 
Is there a better approach?

Reply via email to