I don't know of such a library (which doesn't mean one doesn't exist), but the concept is sound. All FOP needs is valid FO, regardless of how it's generated.
Jay Bryant Bryant Communication Services ----- Original Message ----- From: "Geoffrey De Smet" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, March 16, 2006 4:56 AM Subject: Java/POJO based FOP transformation (instead of XSL) like in JasperReports > I've worked with both FOP and JasperReports > and I really prefer the FO format over jasperreport's custom format. > But Jasperreports allows to use Java/POJO based transformations, so I am > wondering if this is possible in FOP. > > Basically the idea is to replace: > - generate XML based on POJO > - transform XML with XSL to FO > - feed FOP the FO > with > - supply POJO to "JSP without http" which generates FO > - feed FOP the FO > > Does anyone know an (open source?) library which can do something like: > > class Person { > private String firstName; > private String lastName; > // getters and setters > } > > ... > <jspWithoutHttp:valueObject name="personList" > class="java.util.List<Person>"/> > ... > <% for (Person person : personList) { %> > <fo:block> > <%= person.getFirstName%> > </fo:block> > <fo:block> > <%= person.getLastName%> > </fo:block> > <% } %> > ... > > This should be usable in fat clients, webclients, ...: it is not bound > to the HTTP protocol. > > -- > With kind regards, > Geoffrey De Smet > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
