[xep-support] Re: How to use fo:marker?

From: G. Ken Holman <gkholman_at_ADDRESS_REMOVED>
Date: Wed Apr 18 2012 - 08:19:54 PDT

At 2012-04-18 15:05 +0000, Kirch Fritz wrote:
>Hello friends,
>
>I try to solve the problem of printing "see next page..." in
>region-after on all pages except the last page.
>That's why I use fo:markers (see my fo-file in appendix), but
>unfortunately something is wrong with this.
>May be I am temporarily blind, but I hope someone can open my eyes.
>
>Whats wrong with my fo-file?

Two things:

(1) - you are only looking within the page by using
retrieve-boundary="page" ... use the default of
retrieve-boundary="page-sequence" in order to look back to previous pages

(2) - your "Finished!" marker is not the first child of a block ...
simply surround it with an empty <fo:block> to make it the first
child of that block.

I also renamed the incorrect name= to be region-name= in your
region-after, though that is unrelated.

The modified example below should work for you.

I hope this helps.

. . . . . . . . . . Ken

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <fo:layout-master-set>
                 <fo:simple-page-master page-width="100mm"
page-height="50mm" master-name="first">
                         <fo:region-body margin-bottom="10mm"/>
                         <fo:region-after
region-name="xsl-region-after" extent="10mm" background-color="yellow"/>
                 </fo:simple-page-master>
         </fo:layout-master-set>
         <fo:page-sequence master-reference="first">
             <fo:static-content flow-name="xsl-region-after">
                    <fo:block>[last-starting-within-page]<fo:retrieve-marker
retrieve-class-name="table-footer"
                    retrieve-boundary="page-sequence"
                                                   retrieve-position="last-starting-within-page"/></fo:block>
                    <fo:block>[first-starting-within-page]<fo:retrieve-marker
retrieve-class-name="table-footer"
                    retrieve-boundary="page-sequence"
                                                   retrieve-position="first-starting-within-page"/></fo:block>
                 </fo:static-content>
                 <fo:flow flow-name="xsl-region-body">
                         <fo:block>
                             <fo:marker
marker-class-name="table-footer">see next page...</fo:marker>
                                 <fo:block>Lorem ipsum dolor sit
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
Lorem ipsum dolor sit amet.
                                 </fo:block>
                                 <fo:block>Lorem ipsum dolor sit
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
Lorem ipsum dolor sit amet.
                                 </fo:block>
                                 <fo:block>Lorem ipsum dolor sit
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
Lorem ipsum dolor sit amet.
                                 </fo:block>
<fo:block>
                                 <fo:marker
marker-class-name="table-footer">Finished!</fo:marker>
</fo:block>
                         </fo:block>
                 </fo:flow>
         </fo:page-sequence>
</fo:root>

--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- May 2012
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/f/
G. Ken Holman                   mailto:gkholman#ADDRESS_REMOVEDGoogle+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal
!DSPAM:87,4f8edba663731364013162!
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Sun Apr 29 23:48:34 2012

This archive was generated by hypermail 2.1.8 : Sun Apr 29 2012 - 23:48:39 PDT