Hi,
I tested some variations of the position of the markers and the
properties i used for the retrieve-marker, i finally got my desired
output. Here's my fo code for reference:
<fo:page-sequence master-reference="simple">
<fo:static-content flow-name="xsl-region-before">
<fo:block border-bottom-style="solid"
border-bottom-width="1pt" background-color="gray">
<fo:retrieve-marker
retrieve-class-name="heading-in-page-sequence"
retrieve-boundary="page-sequence"
retrieve-position="first-starting-within-page"/>
<fo:retrieve-marker
retrieve-class-name="heading-separator" retrieve-boundary="page"
retrieve-position="first-starting-within-page"/>
<fo:retrieve-marker retrieve-class-name="heading"
retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:marker
marker-class-name="heading-in-page-sequence">first heading</fo:marker>
<fo:block text-align="center" font-size="14pt">First
Heading</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block break-after="page">Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block><fo:marker
marker-class-name="heading-in-page-sequence">first
heading</fo:marker>Some text</fo:block>
</fo:block>
<fo:block>
<fo:marker
marker-class-name="heading-in-page-sequence">second heading</fo:marker>
<fo:block text-align="center" font-size="14pt">
<fo:marker
marker-class-name="heading-separator">-</fo:marker>
<fo:marker marker-class-name="heading">second
heading</fo:marker>Second Heading</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block break-after="page">Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block><fo:marker
marker-class-name="heading-in-page-sequence">second
heading</fo:marker>Some text</fo:block>
</fo:block>
<fo:block>
<fo:marker
marker-class-name="heading-in-page-sequence">third heading</fo:marker>
<fo:block text-align="center" font-size="14pt">
<fo:marker
marker-class-name="heading-separator">-</fo:marker>
<fo:marker marker-class-name="heading">third
heading</fo:marker>Third Heading</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block break-after="page">Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block break-after="page">Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block break-after="page"><fo:marker
marker-class-name="heading-in-page-sequence">third
heading</fo:marker>Some text</fo:block>
</fo:block>
<fo:block>
<fo:marker
marker-class-name="heading-in-page-sequence">fourth heading</fo:marker>
<fo:block text-align="center" font-size="14pt">
<fo:marker
marker-class-name="heading-separator">-</fo:marker>
<fo:marker marker-class-name="heading">fourth
heading</fo:marker>Fourth Heading</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block><fo:marker
marker-class-name="heading-in-page-sequence">fourth
heading</fo:marker>Some text</fo:block>
</fo:block>
<fo:block>
<fo:marker
marker-class-name="heading-in-page-sequence">fifth heading</fo:marker>
<fo:block text-align="center" font-size="14pt">
<fo:marker
marker-class-name="heading-separator">-</fo:marker>
<fo:marker marker-class-name="heading">fifth
heading</fo:marker>Fifth Heading</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block>Some text</fo:block>
<fo:block><fo:marker
marker-class-name="heading-in-page-sequence">fifth
heading</fo:marker>Some text</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
Basically, I placed a marker that can be read when i specified a
page-boundary of page-sequence. These were place as the first child of
the parent block of the article and the first child of the last block of
the article. Then I placed a marker for the separator and the title of
the current article in the first block child of the main block, so that
it can only be read by a page-boundary of page (I hope my understanding
of the page-boundary property was correct).
Thanks,
*Jeff Sese*
Jeff Sese wrote:
How do i go about creating dynamic running heads that displays the
first article in the page and the last article in page; or the only
article if there is only one article in the page?
page 1:
Title 1
some text
some text
some text
some text
some text
page 2:
some text
some text
Title 2
some text
some text
some text
page 3:
some text
Title 3
some text
some text
some text
some text
page 4:
some text
some text
some text
some text
some text
some text
page 5:
Title 4
some text
some text
some text
Title 5
some text
some text
some text
I want my output to have the following headers for their corresponding
page:
page 1: Title 1
page 2: Title 1 - Title 2
page 3: Title 2 - Title 3
page 4: Title 3
page 5: Title 4 - Title 5
Where do i put my markers and how do i retrieve them?
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]