Another (in my mind harder but perhaps more flexible) approach would be to
create XSL-FO output and run it through something like fop.
I would be really interested in hearing a bit more about this approach if
anyone has done it or used FOP... ?
A bit of research indicates fop is Java based so I am guessing it could be
used by TT with some wrapper code calling it at the command line (or is
there a better way to do this?)
The reason it sounds interesting is currently we produce a web page with
info on it and some graphs and then do the same thing again as a PDF (when
they press print), the TT code for getting the data is obviously very
similar but the code for the PDF (i.e. Latex) and HTML displaying are very
different. Now I have been asked to do an excel export (or more likely
CSV) as well, and no doubt there will be style changes to the web site and
pdf over the years......
So it is starting to make sense to use one XML page generated by TT from
the MySQL Database and then XSLT (if I need to change the structure) and
then XSL:FO to make it look pretty in CSV / HTML / PDF(via FOP).
Regards
Simon
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.362 / Virus Database: 267.13.10/188 - Release Date: 29/11/2005
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates