thanks for ur reply. but i am afraid that i cant find anything new in ur given url. the url is showing the same code as i wrote in my request.
so if u have another ide or code snippet pls help me.
Jeremias Maerki <[EMAIL PROTECTED]> wrote:
Jeremias Maerki <[EMAIL PROTECTED]> wrote:
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]
S. M. Zahidul Islam
Software Engineer
IECB
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.