[EMAIL PROTECTED] wrote:
Hi Adrian, Hi Jeremias,
I tried what suggested Adrian and got following error:
[ERROR] FOTreeBuilder - javax.xml.transform.TransformerException:
java.lang.IllegalStateException: endElement() called for fo:root where
there is no current element.
Are you using FOP built from SVN? The ps:comment-before extension that
Adrian told you about is only available in the latest FOP code. I only
committed this code a few days ago, so you may need to download FOP from
SVN again if you haven't done it recently.
I tried before to use ps-setup-code instead of ps:ps-comment-before. Like
this:
<fo:declarations>
<ps:ps-setup-code name="MAIN"><![CDATA[ %%DocumentMedia: anything 595
842 0 MAIN ()
%%+ anything 595 842 0 AUX ()
%%+ anything 595 842 0 MAG3 ()
%%+ anything 595 842 0 MAG4 ()
%%+ anything 595 842 0 MAG5 ()]]>
</ps:ps-setup-code>
</fo:declarations>
The xsl-fo trasform worked but I had this code on every page in the
generated PS (>4 GO for 18.000 pages).
That's odd, ps:ps-setup-code should only be placed in the %BeginSetup
and %EndSetup section at the top of the Postscript File.
For using DCS option, I understood (may be I am miss-understanding??) that
I should change some FOP Java Sources. I am not a Java specialist and my
customer has no java programmers at all! So it it is a forbidden solution.
I guess you mean DSC here = Document Structure Convention. I don't think
you need to follow Jeremias' suggestion unless you have any further
requirements for customising the Postscript on top of what you've
already told us. So far, your requirements are fairly typical of what
most Mail fulfilment shops (AKA print Bureaus) expect.
Chris
<snip/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]