Hi

Yeah the sources you quote are the ones I was using...

I will give it another try and let you know if I get any problems...

Cheers

-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: 09 March 2005 15:54
To: [EMAIL PROTECTED]
Subject: Re: FopServlet


Manoj, you must definitely have missed something. Using the disk for
this kills a lot of performance. Chris' suggestion is right. The
"embedded" examples page (where Ben obviously got the example from)
should point him in the right direction. Unfortunately, the example
servlet in the FOP 0.20.5 distribution was written with the older
XSLTInputHandler approach. It is very simple to rewrite that part to use
the approach that is shown, step by step, in the "embedded" examples.
ExampleObj2PDF is the key.

Ben, if you use a JAXP source instead of an InputSource the thing should
become clear (when you also look at ExampleObj2PDF). ProjectTeam.java
contains the following method:

public Source getSourceForProjectTeam() {
    return new SAXSource(new ProjectTeamXMLReader(), new
ProjectTeamInputSource(this));
}

So the source for the JAXP transformation is the above SAXSource
instance, and the Result is the SAXResult that you initialize with the
ContentHandler you get via Driver.getContentHandler().

All clear?

[1]
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/servlet/src/FopServlet.ja
va?hideattic=0&rev=1.1.2.2&view=markup

On 09.03.2005 16:30:38 Manoj_Nair wrote:
> Ben
> 
> I tried without creating a file on disk but was not successful but then
> I might have missed something. If disk space is an issue ( like in my
> case) , I created them in the /tmp directory on Unix where my server was
> running. The /tmp directory gets cleaned up et end of day and so that
> solved my problem..
> 
> Thanks
> Manoj
> 
> 
> -----Ben Gill <[EMAIL PROTECTED]> wrote: -----
> 
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> From: Ben Gill <[EMAIL PROTECTED]>
> Date: 03/09/2005 02:02AM
> Subject: FopServlet
> 
> Hi,
> 
> I am trying to use the FopServlet, but ideally, dont want to have to
produce
> the XML file on disk, and then load it up again, just to pass in File,
File
> into XSLTHandler (or TraxInputHandler)...
> 
> So, I was trying to just pass in InputSources..(ie):
> 
> ProjectTeam projectTeam = new ProjectTeam();
> InputSource projectTeamInputSource = new
> ProjectTeamInputSource(projectTeam);
> 
> Is this possible?  or do I *have* to save the XML to disk?
> 
> (I was getting a malformed URL exception when trying to do this)
> 
> Ben
> 
> This message has been checked for all known viruses by the MessageLabs
Virus Control Centre.
> 
>      
> *********************************************************************
> 
> Notice:  This email is confidential and may contain copyright material of
Ocado Limited (the "Company"). Opinions and views expressed in this message
may not necessarily reflect the opinions and views of the Company.
> If you are not the intended recipient, please notify us immediately and
delete all copies of this message. Please note that it is your
responsibility to scan this message for viruses.
> 
> Company reg. no. 3875000.
> Ocado Limited
> Titan Court
> 3 Bishops Square
> Hatfield Business Park
> Hatfield
> Herts
> AL10 9NE
> 
> 
> *********************************************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------To
unsubscribe, e-mail: [EMAIL PROTECTED] additional
commands, e-mail: [EMAIL PROTECTED]



Jeremias Maerki


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


_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Control Centre.

This message has been checked for all known viruses by the MessageLabs Virus 
Control Centre.

        
*********************************************************************

Notice:  This email is confidential and may contain copyright material of Ocado 
Limited (the "Company"). Opinions and views expressed in this message may not 
necessarily reflect the opinions and views of the Company.
If you are not the intended recipient, please notify us immediately and delete 
all copies of this message. Please note that it is your responsibility to scan 
this message for viruses.

Company reg. no. 3875000.
Ocado Limited
Titan Court
3 Bishops Square
Hatfield Business Park
Hatfield
Herts
AL10 9NE


*********************************************************************

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

Reply via email to