> -----Original Message-----
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
> Sent: 11 October 2006 13:36
> To: [email protected]
> Subject: Re: OMR Mark on Last Odd Page
Hi Jeremias,
Thanks for the reply.
> As can be read in the mailing list archives I did OMR stuff
> after FOP generated the document, by post-processing the
> output file. Others do this, too. With 0.20.5 you don't have
> many other choices. At any rate, you don't have any "last
> page" functionality in 0.20.5. In 0.92beta you have some of
> that but I doubt you can do "last odd page" stuff.
> Post-processing is the way to go, if you ask me. Starting
> with 0.92beta you have the possibility to render to the
> intermediate format (see
> website) and modify the generated XML file adding the OMR
> marks at the right places. Then you render the immediate
> format to the desired output format. Not trivial stuff, though.
Sounds unpleasant.
I was wondering if I could have my mark on every page and have a bit of
logic behind it that figures out where it is in the pages and therefore
whether it's on the last odd page. If the arithmetic figures out that it's
on the last odd page the mark is shown, if not it's not shown.
Slats produces this code when you insert an "X of Y" pagination element...
<fo:page-number/><xsl:text> of </xsl:text>
<fo:page-number-citation ref-id="pageNumberCitation"/>
....
<xsl:if test='position()=last()'>
<fo:block id="pageNumberCitation"/>
</xsl:if>
I'm by no means fluent in XSLT/XSL:FO but that looks pretty good to me.
There's mention of (presumably) current position and 'last' position. Could
this not be adapted with smarter XSLT to have it figure-out my "Am I on the
last odd page" question?
Obviously, my situation does not need the creation of a unique/complicated
barcode on each page, I just need to draw (say) three underscores. It
doesn't sound like rocket science.
Cheers
Jason.
Jason Timmins (Technical Director) InterLinx Ltd.
Geo: West Mids, UK. Tele: +44 8707 430999. Fax: +44 8707 460999.
Beyond here there be dragons.
________________________________________________________________________
This email has been scanned for all viruses by the InterLinx Anti-Virus
Email service. For more information on a proactive anti-virus service
working around the clock, around the globe, visit
http://www.interlinx.co.uk/anti-virus-anti-spam.htm
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]