]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
added info about using xslt input handler
authorKeiron Liddle <keiron@apache.org>
Thu, 28 Jun 2001 09:55:11 +0000 (09:55 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 28 Jun 2001 09:55:11 +0000 (09:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194322 13f79535-47bb-0310-9956-ffa450edef68

docs/xml-docs/fop/embedding.xml

index 5f6e46f940c9949f2c564e07d00e7eb0f5b6552c..c74ba2bdfc8738cf4615e46c352b04e8fc26e52b 100644 (file)
   driver.format();
   driver.setOutputStream(new FileOutputStream(args[1]));
   driver.render();
+]]></source>
+  <p>You can also specify an xml and xsl file for the input.
+  </p>
+  <p>Here is an example use of Driver with the XSLTInputHandler:</p>
+  <source><![CDATA[
+  Driver driver = new Driver();
+  driver.setRenderer(Driver.RENDER_PDF);
+  InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
+  XMLReader parser = inputHandler.getParser();
+  driver.buildFOTree(parser, inputHandler);
+  driver.format();
+  driver.setOutputStream(new FileOutputStream(outFile));
+  driver.render();
 ]]></source>
   <p>Have a look at the classes CommandLineStarter or FopServlet for complete examples.</p>
   </s2>