Please see the URL below for pointers to examples how it could/should be
done today. The examples there are using JAXP instead of InputHandlers.
Especially look at ExampleXML2PDF.java which does what you do now. The
examples are available if 0.20.5 release candidates or from CVS.

http://xml.apache.org/fop/embedding.html#examples

On 19.05.2003 09:12:04 Zahidul Islam wrote:
> Hello
>         i am using the following code to (i got it from xml.apache.org) make 
> a pdf output from an xml and xsl file using servlet:
>  
> XSLTInputHandler input
>   =new XSLTInputHandler(new File("foo.xml"), new File("foo.xsl"));
> Driver driver=new Driver();
> driver.setOutputStream(response.getOutputStream());
> driver.setRenderer(Driver.RENDER_PDF);
> driver.render(input.getParser(), input.getInputSource());
>  
> But while compiling it shows warning for using deprecated methods. from 
> documentation i come to know that i have to replace getParser() and 
> getInputSource() with TraxInputHandler run(Driver) method. And i try that in 
> this way :
>  
> TraxInputHandler input
>   =new TraxInputHandler(new File("foo.xml"), new File("foo.xsl"));
> Driver driver=new Driver();
> driver.setOutputStream(response.getOutputStream());
> driver.setRenderer(Driver.RENDER_PDF);
> //driver.render(input.getParser(), input.getInputSource());
> input.run(driver);
>  
> But it generate FOPException.
>  
> pls someone help me. very urgent.


Jeremias Maerki


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

Reply via email to