Re: getParser deprecated but still in sevelt example?

2003-02-10 Thread Jeremias Maerki
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: getParser deprecated but still in sevelt example?

2003-02-10 Thread Matthew Lancashire
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:[EMAIL PROTECTED]
Sent: 10 Feb 2003 10:14
To: [EMAIL PROTECTED]
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" <[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]


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



Re: getParser deprecated but still in sevelt example?

2003-02-10 Thread Laurent ForĂȘt
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]



getParser deprecated but still in sevelt example?

2003-02-10 Thread Matthew Lancashire
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]