xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Edge" <Martin.E...@asmorphic.net.au>
Subject RE: The apparently unsolvable issue.. Duplex Page Numbering Support
Date Thu, 29 May 2008 04:10:28 GMT
FO File example is at http://123.2.69.69/temp/test2.fo

Thanks again,
Martin.


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

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:Martin.Edge@asmorphic.net.au] 
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message