Hi There,

I was asking before Christmas how to put OMR marks on the last odd page of
XSL documents and Jeremias kindly suggested an approach that works well
enough for me. However, people keep calling and Emailing asking exactly how
I made it work so I thought I'd just drop this into the list so that people
can find it for themselves. Anyway....


I don't edit XSL files directly, I use the excellent XSLFast
(www.xslfast.com) but this is how I got my OMR marks working...
 
Place this code after the content on your page grows (like a like a table or
something)...

<fo:marker marker-class-name="theend">___</fo:marker>

...the underscores there are the (very simple) mark I need to make the
machine fold the document and insert it into an envelope. I really hope that
more complex marks are possible because I've got another project that's
going to require all kinds of crazy marks!

You need to build your document such that even and odd pages are defined
then place this code in the header (or wherever you need the OMR mark) on
the odd page layout...

<fo:retrieve-marker retrieve-class-name="theend"/>

...ensuring that you make it an absolute placement so that it doesn't move
around.

Finally, make sure the entire document has 'Alternate page numbers' enabled
and 'Force page count' is set to 'end-on-odd'.

This will give you a mark on the last odd page however, it's not perfect. If
your document has an even number of pages, the 'end-on-odd' option adds an
odd page and puts the mark on it. You then end up with a (mostly) blank page
accept for the OMR mark... It's really irritating.

I'd really love to find a better solution.

Bye for now
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]

Reply via email to