There are new example without deprecated apis accessible from cvs at this
url :
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/
Attic/

regards, Laurent.

----- Original Message -----
From: "Matthew Lancashire" <[EMAIL PROTECTED]>
To: "Fop-User-Help (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 11:06 AM
Subject: getParser deprecated but still in sevelt example?


> Why do I get the errors
> getParser is deprecated and getInputSource is not a class within
> XSLTInputHandler?
>
>     public void convertXML2PDF(String xml, String xslt)
> throws IOException, FOPException, TransformerException
> {
> driver.setRenderer(Driver.RENDER_PDF);
> XSLTInputHandler xmlDoc = new XSLTInputHandler(xml,xslt);
> ByteArrayOutputStream pdf = new ByteArrayOutputStream();
> driver.setOutputStream(pdf);
>         try
> {
> driver.render (xmlDoc.getParser(), xmlDoc.getInputSource()) ;
>
>
>
> Matthew Lancashire
> IT Project Manager
> Intitial Electronic Security Ltd
>
> Tel: +44 1282 473554
> Fax: +44 1254 267552
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to