You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Matthew Lancashire <m....@ies.uk.com> on 2003/02/10 11:06:27 UTC
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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: getParser deprecated but still in sevelt example?
Posted by Jeremias Maerki <de...@greenmail.ch>.
I've refactored the servlet last week for the redesign branch. You could
try that one. Since it's for the redesign, you might have to adjust a
few things for the maintenance branch.
Here it is:
http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/servlet/FopServlet.java?rev=1.1&content-type=text/vnd.viewcvs-markup
On 10.02.2003 11:48:47 Matthew Lancashire wrote:
> its the servlet i want so that i can stream data in and out withiut using
> files.
> The CVS servlet still uses these methods (getInputSource,...)
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: getParser deprecated but still in sevelt example?
Posted by Matthew Lancashire <m....@ies.uk.com>.
its the servlet i want so that i can stream data in and out withiut using
files.
The CVS servlet still uses these methods (getInputSource,...)
-----Original Message-----
From: Laurent ForĂȘt [mailto:l.foret@clipack.com]
Sent: 10 Feb 2003 10:14
To: fop-user@xml.apache.org
Subject: Re: getParser deprecated but still in sevelt example?
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" <m....@ies.uk.com>
To: "Fop-User-Help (E-mail)" <fo...@xml.apache.org>
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: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: getParser deprecated but still in sevelt example?
Posted by Laurent ForĂȘt <l....@clipack.com>.
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" <m....@ies.uk.com>
To: "Fop-User-Help (E-mail)" <fo...@xml.apache.org>
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: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org