Re: support for PDF viewing of XML documents
Brought to you by:
ovidiu
|
From: Ovidiu P. <ov...@xe...> - 2001-08-18 03:49:20
|
Jeff, There is no file in the doc/ directory you need to open/print. Instead, take a look in the tests/fo/ directory. You have a greetings.xml file which is a regular XML file containing some data. There's a greetings.xsl file, which operates on greetings.xml and generates an XML FO file. If you apply the XSLT processor on the XML file in the usual way, you would get the XML FO document. But now you can choose "Apply XSLT, view PDF" which will run the resulting XML FO document through the FOP processor, obtain a PDF file, and pass this file to a PDF viewer. This is the understanding of the question/request for feature you made a while ago on this mailing list. Was I right in the approach to solve the problem? Regards, Ovidiu On Fri, 17 Aug 2001 14:11:33 -0400, "Jeff Rancier" <jef...@so...> wrote: > I'm anxious to try what you've done. Silly question: in the doc directory, > which file do I print? How? > Jeff > > -----Original Message----- > From: ov...@cu... [mailto:ov...@cu...]On Behalf Of Ovidiu > Predescu > Sent: Friday, August 17, 2001 3:01 AM > To: Jeff Rancier > Cc: xsl...@li... > Subject: support for PDF viewing of XML documents > > > Jeff, > > I finally had some time to work on the PDF viewing support (I was > really busy at work with a deadline on the project I work on). > > There is now a new menu item in the top level XSLT menu, "Apply XSLT, > View PDF". The action applies an XSLT transformation on the input XML > document, then calls the Apache FOP processor on it to generate a PDF > document. After the PDF document is generated, a PDF viewer of choice > is invoked to show the results. You can specify your favorite PDF > viewer through customization. By default xpdf is setup, but > AcrobatReader is another choice. If you have a different viewer than > these two, you can still enter it in the customization. > > Everything you need to generate PDFs is included in the package, you > don't need anything additional. I placed an build package at > > ftp://xslt-process.sourceforge.net/pub/xslt-process/xslt-process-20010816.ta > r.gz > > I have tested this on Linux, with xpdf and AcrobatReader and it works > fine for me. I've tested with the two files in the tests/fo/ > directory, an XML and an XSLT file taken from the FOP 0.20.1 > distribution. To test, associate the XML with the XSLT file, and > invoke C-c C-x p. > > The testing I've done is minimal, so please let me know if this works > for you with some more complex files. I would also be interested in > somebody testing this on Windows too, I will test it anyway sometime > these days, but more testers are better than one. If everything works > fine, I will make a new release with this functionality over the > week-end. > > Regards, > -- > Ovidiu Predescu <ov...@cu...> > http://orion.nsr.hp.com/ (inside HP's firewall only) > http://sourceforge.net/users/ovidiu/ (my SourceForge page) > http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other > stuff) > |