Have a look at the AWTStarter which itself instantiates and uses the
preview dialog. AWTStarter is used when FOP is started from the
command-line.

http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/apps/AWTStarter.java?hideattic=0&rev=1.19&view=auto

HTH

On 23.12.2004 13:22:43 Lawford, Mark : Enable wrote:
> I've been playing around with XSLT and FO for a couple of months, learning
> the various syntaxes and such. I've only just realised however that there is
> a PreviewDialog class included in the FOP code.
> 
> I hven't worked out how to use this thing however.
> 
> As a minimum "PreviewDialog(AWTRenderer aRenderer, Translator aRes)" appears
> to build the dialog but how do I get it to that stage?
> 
> I can guess the renderer but what of the Translator?
> 
> If I have a source XML file and an XSLT stylesheet that produces FO content,
> how do I preview the transformation from my Java code?

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to