Hi All:
I have a servlet with the following code fragment in it:
 
          Driver driver = new Driver();
          driver.setRenderer(Driver.RENDER_PDF);
          InputHandler inputHandler = new XSLTInputHandler(new File(xmlFile), new File(xslFile));
          XMLReader parser = inputHandler.getParser();
          driver.setOutputStream(new FileOutputStream(outFile));
          driver.render(parser,inputHandler.getInputSource());
 
I get the following message when I attempt to compile it:
 
runTestsServlet1.java:387: render() in org.apache.fop.apps.Driver cannot be applied to (org.xml.sax.XMLReader,org.xml.sax.InputSource)
          driver.render(parser,inputHandler.getInputSource());
               
I got the code from the examples at the Apache site.  It looks
as though the render methods takes no arguments.
 
Any help ideas?.  Basically I am trying to create a PDF file
from an XML and XSL file.
 
Greetings,
Carmelo
 
Carmelo Montanez
NIST Stop 8970
Gaithersburg, MD 20899
 

Reply via email to