[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How? Glossary page header lists last entry on page
At 2013-01-27 18:58 -0800, Steve Fogel wrote:
I'm customizing the XSL-FO for our DITA PDF output. For our glossary, for each set of facing pages (even on left, odd on right), the left page header must be the first glossary term on the page, and the right page header must be the last on the page. This tells readers the "range" of glossary terms on the facing-page pair. Markers are also retrieved, but with different requirements for fetching the particular marker that is needed. Your requirement is common and comes up often in the classroom. For your left page header you likely used one of: <retrieve-marker retrieve-class-name="glossItem" retrieve-boundary="page-sequence" retrieve-position="first-including-carryover"/> ... or ... <retrieve-marker retrieve-class-name="glossItem" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/> ... based on what you mean by "first on the page". You don't say if you want it to be the first one that appears or the first one that starts; I'm guessing you want the latter of the two: the first one that starts on the page. Then what you need for the right page header is one of: <retrieve-marker retrieve-class-name="glossItem" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/> ... or ... <retrieve-marker retrieve-class-name="glossItem" retrieve-boundary="page-sequence" retrieve-position="last-starting-within-page"/> ... and I'm guessing you want the latter in that you don't care if the last one flows to the next page. Check pages 257 to 260 of the free preview of my book on XSL-FO for some useful diagrams ... this is the book that our instructor-led training is based on: http://www.CraneSoftwrights.com/training/#pfux I hope this helps. . . . . . . . . . . Ken -- Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|