[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How? Glossary page header lists last entry on page

Subject: Re: [xsl] How? Glossary page header lists last entry on page
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 27 Jan 2013 22:14:58 -0500

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.

I've used fo:marker to get the left page header, but would appreciate suggestions as to how to get the right page header so it shows the glossary term of the last glossentry on the page.

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"

... or ...

<retrieve-marker retrieve-class-name="glossItem"

... 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"

... or ...

<retrieve-marker retrieve-class-name="glossItem"

... 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:


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

Current Thread