RE: [xsl] creating multiple pdf-files from one xml

Subject: RE: [xsl] creating multiple pdf-files from one xml
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Fri, 13 Feb 2004 18:51:39 +0100
> -----Original Message-----
> From: Kloeck, Erwin
>
> I fear I didn't understand the question correctly, how do I read the
> files back in?
>
> I call the xslt processor from within a java program and write
> the resulting fo files to a specific directory. Then I loop
> through the directory and send every file to the fo processor. So
> there is no 'piping', just writing a file and reading a file.
> Piping is what I would like to do, but I have no idea how?
>
> Hence my question.
>

Yeah, I was just wondering how you worked around the absence of a
piping-mechanism...

Thing I noticed was that it's possible to have a scenario:
1 XML + 1 XSL --> n FOs (--> PDFs)

I don't really know for sure about other processors, but FOP doesn't provide
for a mechanism to collect the redirected FOs and would, when offered the
source XML and the stylesheet as input, only render the base FO, not the
redirected ones (--hence your workaround, I presume?)

One solution would be to 'catch' the redirected streams directly from the
XSL processor, buffer them, and have the FO processor starts up a parallel
rendering run for them, so the correlated 'files' (better: result-trees)
wouldn't even need to get written, but are serialized along with the main
XSL transformation result...

I'm afraid 'though, that I have no exact idea on how to go about that for
the moment.


Cheers,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread