Okay, thanks for that. I did notice the following though:
translator = new Translator(Locale.getDefault()); The same line in my code complains as Translator is an interface. "The type org.apache.fop.viewer.Translator is not a valid type" Mark Lawford Analyst Programmer Enable ISS - Hastings Mid Range Services Cavendish House, Castle Street, Hastings, East Sussex TN34 3DY * 01424 4533018/ (7) 4274 3018 * 07957 280 811 * [EMAIL PROTECTED] * Mail Van E -----Original Message----- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: 23 December 2004 13:08 To: [EMAIL PROTECTED] Subject: Re: FOP Preview Dialog 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] Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. Barclays Bank PLC. Authorised and regulated by the Financial Services Authority. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]