I've had to remove the FO file as I can only assume that's why I'm hitting
the spam threshold.. perhaps the apache mailing lists are a little anal?



-----Original Message-----
From: Martin Edge [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 29 May 2008 2:03 PM
To: 'fop-users@xmlgraphics.apache.org'
Subject: The apparently unsolvable issue.. Duplex Page Numbering Support

Hi,

I have done a reasonable amount of digging across the internet but I am
unable to find any workaround possible. Hopefully the answer isn't "you're
just stuck".

I am using XSL-FO to format physical letters. The XSLT /XSL-FO template
incorporates multiple postable letters in a single XSL-FO document. I use
block ids to find out my current page sequences and numbers.. such as:

<fo:page-number-citation ref-id="startofsection1"/>-<fo:page-number-citation
ref-id="endofsection1"/>

<fo:page-number-citation ref-id="startofsection2"/>-<fo:page-number-citation
ref-id="endofsection2"/>

And so on.

Some of these letters however, may be printed in duplex mode when it hits
our printer. 

Currently we iterate through each generated PDF file, and modify a place
holder to give it the correct page numbers based on whether the letter is
simplex or duplex. We also do this similar tagging in the PCL file we
generate afterwards. When dealing with large volumes of letters, this
process is very time intensive. It would seem much smarter to solve this at
the FO level.

I know XSL-FO is strictly a formatting extension, but is there _any_ way in
this .FO file I could do any calculation?

For instance, <somewaytocalculate><fo:page-number-citation
ref-id="endofsection1"/></somewaytocalculate>
Where in that calculation I could simply divide the output of the page
number by 2 and floor it?

The page number in this case is used to generate a barcode which is printed
on the front of a piece of paper which is read by a paper inserter.

I have attached one of my FO files for your perusal..

I also notice Antenna XSL talks about MathML.. is that the sort of thing I'm
looking for?

Hope there is some magic out there somewhere!
Thanks
Martin.







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

Reply via email to