keiron      01/06/28 02:55:14

  Modified:    docs/xml-docs/fop embedding.xml
  Log:
  added info about using xslt input handler
  
  Revision  Changes    Path
  1.7       +13 -0     xml-fop/docs/xml-docs/fop/embedding.xml
  
  Index: embedding.xml
  ===================================================================
  RCS file: /home/cvs/xml-fop/docs/xml-docs/fop/embedding.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- embedding.xml     2001/03/03 07:51:27     1.6
  +++ embedding.xml     2001/06/28 09:55:11     1.7
  @@ -50,6 +50,19 @@
     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>
     <s2 title="Using Fop in a servlet">  
  
  
  

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

Reply via email to