Mark J. Stang wrote: > I thought of XSLT, but I need to view them on the screen and print > them.
That's how I'd do it.
> Oh, and my application is a Java Application, not browser based. I > could generate HTML and display it in an HTML Editor window, but how > would I print it?
The Swing JEditorPane/JTextPane supports rendering HTML, so the easiest way would be to get the transform generating HTML and streaming it into a JTextPane. You *should* be able to print it from there, but that's not something I've had experience with.
A better alternative would be to use FOP <http://xml.apache.org/fop/index.html>. Use XSLT to generate XSL:FO from your XML, then get FOP to render that. FOP supports rendering to a bunch of formats, including to PDF, PS, and Java Graphics objects (IIRC).
Mike.
-- Mike Gratton <[EMAIL PROTECTED]> Leader in leachate production and transmission since 1976. <http://web.vee.net/>
