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 Te...@itsolicom.fi on 2002/02/26 14:18:36 UTC

VS: Pipe XSLT Transform to FOP (AND: ABOUT MAIL ARCHIVES)

Hi 

I looked at the mailing list archives Joerg recommended (are all messages 
written to this mailing list found there)?

If someone is interested in firing FOP with SAX events, the most interesting

messages I found in the archive are 

http://marc.theaimsgroup.com/?l=fop-dev&m=100559404418852&w=2 
and (another message commenting the previous message)
http://marc.theaimsgroup.com/?l=fop-dev&m=100566543511704&w=2

some comments to Joergs message:

I do not think using TraxInputHandler or XSLTInputHandler is 
better than using a DOM tree. TraxInputHandler and XSLTInputHandler are both

making use of Files which is slow instead of being memory-consuming 
(XSLTInputHandler is using Strings in case of smaller documents which is
again 
memory-consuming instead of being slow). I am getting my XML files from a 
database and avoiding memory consumption by writing them (again) to the hard

disk is really not what I want to do :) Is memory consumption not a smaller
problem 
than reading from hard disk? The worst that might happen with memory 
consumption is swapping, that means taking data to the hard disk.

I guess the code example included in the first mentioned archived message 
seems to be the best way to minimize memory consumption using FOP.

the mail archive is very useful, thanks for it :)

-Teemu

> -----Alkuperäinen viesti-----
> Lähettäjä:	Joerg Pietschmann [SMTP:joerg.pietschmann@zkb.ch]
> Lähetetty:	12. helmikuuta 2002 18:53
> Vastaanottaja:	FOP User
> Aihe:	Re: Pipe XSLT Transform to FOP
> 
> Ryan Howe <ho...@yahoo.com> wrote:
> > Could anyone point me in the right direction of how I could transform
> > my XML to PDF without creating an intermediate file?
> 
> Look up TraxInputHandler and XSLTInputHandler, or
> Document.getContentHandler()
> in the FOP documentation or the mailing list archives.
> This might get you started
>  http://marc.theaimsgroup.com/?l=fop-user&w=2&r=1&s=getcontenthandler&q=b
>  http://marc.theaimsgroup.com/?l=fop-user&w=2&r=1&s=xsltinputhandler&q=b
>  http://marc.theaimsgroup.com/?l=fop-dev&w=2&r=1&s=xsltinputhandler&q=b
>  http://marc.theaimsgroup.com/?l=fop-dev&w=2&r=1&s=traxinputhandler&q=b
> Be warned, use at least FOP version 0.20.2 to avoid frustration, some
> stuff doesn't work or works differently in 0.19 and 0.20.1
> Do not use PipedStream or an intermediate DOM tree unless you can
> afford wasting memory.
> 
> J.Pietschmann