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-devm=100559404418852w=2
and (another message commenting the previous message)
http://marc.theaimsgroup.com/?l=fop-devm=100566543511704w=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:[EMAIL PROTECTED]
Lähetetty:12. helmikuuta 2002 18:53
Vastaanottaja:FOP User
Aihe: Re: Pipe XSLT Transform to FOP
Ryan Howe [EMAIL PROTECTED] 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-userw=2r=1s=getcontenthandlerq=b
http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=xsltinputhandlerq=b
http://marc.theaimsgroup.com/?l=fop-devw=2r=1s=xsltinputhandlerq=b
http://marc.theaimsgroup.com/?l=fop-devw=2r=1s=traxinputhandlerq=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