Hi, FOP seems to be wrong here when a marker is used twice. As a workaround, you can insert an ZWNJ (​) before the fo:retreive-marker, that should do the trick (see attached FO snippet).
Can you fill in a new bug entry, with snippet as attachment, please? (see [1]). [1] http://xmlgraphics.apache.org/fop/bugs.html Le 16/02/2011 14:45, Tavmjong Bah a écrit : > > Hi, > > Using both FOP 1.0 and trunk, I have a problem with an extra line in > the running header on some pages in the book I produce with DocBook and > FOP. The problem appears and disappears chapter by chapter and when it > does appear it effects all the even or all the odd side (sometimes both) > pages in the chapter. As I understand it, the height of the header > should be the value of "extent" as in the line: > > <fo:region-before display-align="before" extent="0.4in" > region-name="xsl-region-before-odd"/> > > I manually change the value of "extent" and nothing changes. > > I've attached a FO file, pared down and simplified from the DocBook > output, and the PDF produced from this file showing the problem. Compare > the header on the second and third pages. > > Any ideas? > > Thanks, > > Tav -- Pascal
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" language="en"> <fo:layout-master-set> <fo:simple-page-master margin="0.5in 1in" master-name="body-odd"> <fo:region-body margin-top="0.5in" margin-bottom="0.5in"/> <fo:region-before extent="0.4in" region-name="xsl-region-before-odd"/> </fo:simple-page-master> <fo:simple-page-master margin="0.5in 1in" master-name="body-even"> <fo:region-body margin-top="0.5in" margin-bottom="0.5in"/> <fo:region-before extent="0.4in" region-name="xsl-region-before-even"/> </fo:simple-page-master> <fo:page-sequence-master master-name="body"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference odd-or-even="odd" master-reference="body-odd"/> <fo:conditional-page-master-reference odd-or-even="even" master-reference="body-even"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="body"> <fo:static-content flow-name="xsl-region-before-odd"> <fo:block> <fo:table width="100%" table-layout="fixed" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black"> <fo:table-column column-width="proportional-column-width(1)"/> <fo:table-body> <fo:table-row block-progression-dimension.minimum="14pt"> <fo:table-cell background-color="rgb(255, 255, 127)"> <fo:block>​ <fo:retrieve-marker retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page" retrieve-class-name="section.head.marker"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-before-even"> <fo:block> <fo:table width="100%" table-layout="fixed" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black"> <fo:table-column column-width="proportional-column-width(1)"/> <fo:table-body> <fo:table-row block-progression-dimension.minimum="14pt"> <fo:table-cell background-color="rgb(127, 255, 255)"> <fo:block>​ <fo:retrieve-marker retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page" retrieve-class-name="section.head.marker"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block>Chapter 1. Chapter 1</fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block> <fo:marker marker-class-name="section.head.marker"> Section A</fo:marker> <fo:block> Section A</fo:block> </fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block> <fo:marker marker-class-name="section.head.marker"> Section B</fo:marker> <fo:block> Section B</fo:block> </fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block> <fo:marker marker-class-name="section.head.marker"> Section C</fo:marker> <fo:block> Section C</fo:block> </fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> <fo:block font-size="4em">Abcde fghijk lmnop qrstu vwxyz. Abcde fghijk lmnop qrstu vwxyz.</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
