The page-number-citation stuff won't help you because it's declarative so has to be implemented by FOP. You cannot do anything with that during XSLT stage. What you can experiment with, though is marker and retrieve-marker. If you add a marker to the last empty block usually used for page x of y handling, you can reference that marker in a static-content. Haven't tried it so no guarantee that it'll work.
On 11.10.2006 16:51:13 Jason Timmins wrote: > > -----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. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
