FOPers,

I have been working through an odd XSL-FO for the past few days. I would
truly appreciate some assistance in getting this to work (or at least
confirming that it's a bug). I'm using FOP 0.20.2RC from the binary Linux
distribution.

I have a simple table that sets the formatting for my document. The table
looks like:

     +---+-+-------+       Legend:
     | A |B|   C   |       A: empty cell
     +---+-+-------+       B: empty cell (for spacing)
     | D |E|   F   |       C: headline (text)
     |   | |       |       D: image (fo:external-image)
     |   | |       |       E: empty cell (for spacing)
     +---+-+-------+       F: lots of text (spans multiple pages)

The table spans multiple pages because cell F contains a lot of text. The
image in cell C is a basic fo:external-image wrapped in an fo:block. The
full xsl:fo code for this (in simplified form) is at the end of this
e-mail.

Now, for some reason unbeknownst to me, the image in cell D repeats itself
in the same column on the second and subsequent pages. That is, the image
is displayed at the top of cell D on page 1, but it is also displayed at
the top of that 'column' on pages 2, 3, etc. This happens with any images
(and multiple images) that are in that cell, but not text. I tried a
number of solutions, some worked but had nasty side-effects (see the
comments in the code below).

My questions:

1. Is this supposed to be happening, or this a bug in the FOPlayout
engine?

2. How can I fix this?

I'm hoping that somebody can shed some light on this for me. I've searched
books, the archives, and the Web, and can't seem to find any answers. I've
tried numerous solutions, none of which seem to work. At this point, I'm
either going to start pouring through Java FOP code, or give up. Any
pointers in the right direction are very much appreciated!

Thanks in advance,

                                -Jaron

--
Jaron Rubenstein, Logicept
[EMAIL PROTECTED]
www.logicept.com


--------------------------------------
show_wrap_bug.fo
--------------------------------------

<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  <fo:layout-master-set>

    <fo:simple-page-master master-name="standard"
      page-height="11in"
      page-width="8.5in"
      margin-top="1in"
      margin-bottom="1in"
      margin-right="1in"
      margin-left="1in">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>

  <fo:page-sequence master-name="standard">
    <fo:flow flow-name="xsl-region-body">
      <fo:table>
        <fo:table-column column-width="2.0in"/>
        <fo:table-column column-width="0.5in"/>
        <fo:table-column column-width="4.75in"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell/>
            <fo:table-cell/>
            <fo:table-cell>
              <fo:block text-align="start" font-size="18pt" font-weight="bold" 
padding-after="0.25in">Article Title Goes Here</fo:block>
            </fo:table-cell>
          </fo:table-row>

          <!--
               The following table-row tag results in the FOP looping and
               creating an infinite number of pages (FOP never ends):
               <fo:table-row keep-together.within-column="always">
                 -->
          <fo:table-row>
            <fo:table-cell>
              <!--
                   The following block tag solves the problem for multi-page
                   documents, but adds an unnecessary (blank) second page for
                   single-page documents:
                   <fo:block break-after="page">
                   -->
              <fo:block>
                <fo:external-graphic src="file:/tmp/placeholder.gif"/>
              </fo:block>
            </fo:table-cell>
            <fo:table-cell/>
            <fo:table-cell>
              <fo:block font-size="11pt" line-height="14pt" text-align="start">
                Lorem ipsum dolor sit amet, consectetaur adipisicing elit, sed do 
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat 
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui 
officia deserunt mollit anim id est laborum Et harumd und lookum like Greek to me, 
dereud facilis est er expedit distinct. Nam liber te conscient to factor tum poen 
legum odioque civiuda. Et tam neque pecun modut est neque nonor et imper ned libidig 
met, consectetur adipiscing elit, sed ut labore et dolore magna aliquam makes one 
wonder who would ever read this stuff? Bis nostrud exercitation ullam mmodo consequet. 
Duis aute in voluptate velit esse cillum dolore eu fugiat nulla pariatur. At vver eos 
et accusam dignissum qui blandit est praesent luptatum delenit aigue excepteur sint 
occae. Et harumd dereud facilis est er expedit distinct. Nam libe soluta nobis eligent 
optio est congue nihil impedit doming id Lorem ipsum dolor sit amet, consectetur 
adipiscing elit, set eiusmod tempor incidunt et labore et dolore magna aliquam. Ut 
enim ad minim veniam, quis nostrud exerc. Irure dolor in reprehend incididunt ut 
labore et dolore magna aliqua.
              </fo:block>
              <fo:block font-size="11pt" line-height="14pt" text-align="start">
                Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris 
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in 
voluptate velit esse molestaie cillum. Tia non ob ea soluad incommod quae egen ium 
improb fugiend. Officia deserunt mollit anim id est laborum Et harumd dereud facilis 
est er expedit distinct. Nam liber te conscient to factor tum poen legum odioque 
civiuda et tam. Neque pecun modut est neque nonor et imper ned libidig met, 
consectetur adipiscing elit, sed ut labore et dolore magna aliquam is nostrud 
exercitation ullam mmodo consequet. Duis aute in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. At vver eos et accusam dignissum qui blandit est praesent. 
Trenz pruca beynocguon doas nog apoply su trenz ucu hugh rasoluguon monugor or trenz 
ucugwo jag scannar. Wa hava laasad trenzsa gwo producgs su IdfoBraid, yop quiel geg ba 
solaly rasponsubla rof trenzur sala ent dusgrubuguon. Offoctivo immoriatoly, hawrgasi 
pwicos asi sirucor.Thas sirutciun applios tyu thuso itoms ghuso pwicos gosi sirucor in 
mixent gosi sirucor ic mixent ples cak ontisi sowios uf Zerm hawr rwivos. Unte af phen 
neige pheings atoot Prexs eis phat eit sakem eit vory gast te Plok peish ba useing 
phen roxas. Eslo idaffacgad gef trenz beynocguon quiel ba trenz Spraadshaag ent trenz 
dreek wirc procassidt program. Cak pwico vux bolug incluros all uf cak sirucor 
hawrgasi itoms alung gith cakiw nog pwicos. Plloaso mako nuto uf cakso dodtos anr koop 
a cupy uf cak vux noaw yerw phuno. Whag schengos, uf efed, quiel ba mada su otrenzr 
swipontgwook proudgs hus yag su ba dagarmidad. Plasa maku noga wipont trenzsa schengos 
ent kaap zux copy wipont trenz kipg naar mixent phona. Cak pwico siructiun ruos nust 
apoply tyu cak UCU sisulutiun munityuw uw cak UCU-TGU jot scannow. Trens roxas eis ti 
Plokeing quert loppe eis yop prexs. Piy opher hawers, eit yaggles orn ti sumbloat 
alohe plok. Su havo loasor cakso tgu pwuructs tyu InfuBwain, ghu gill nug bo suloly 
sispunsiblo fuw cakiw salo anr ristwibutiun. Hei muk neme eis loppe. Treas em wankeing 
ont sime ploked peish rof phen sumbloat syug si phat phey gavet peish ta paat ein 
pheeir sumbloats. Aslu unaffoctor gef cak siructiun gill bo cak spiarshoot anet cak 
GurGanglo gur pwucossing pwutwam. Ghat dodtos, ig pany, gill bo maro tyu ucakw 
suftgasi pwuructs hod yot tyubo rotowminor. Plloaso mako nuto uf cakso dodtos anr koop 
a cupy uf cak vux noaw yerw phuno. Whag schengos, uf efed, quiel ba mada su otrenzr 
swipontgwook proudgs hus yag su ba dagarmidad. Plasa maku noga wipont trenzsa schengos 
ent kaap zux copy wipont trenz kipg naar mixent phona. Cak pwico siructiun ruos nust 
apoply tyu cak UCU sisulutiun munityuw uw cak UCU-TGU jot scannow. Trens roxas eis ti 
Plokeing quert loppe eis yop prexs. Piy opher hawers, eit yaggles orn ti sumbloat 
alohe plok. Su havo loasor cakso tgu pwuructs tyu.
              </fo:block>
              <fo:block space-after="11pt"/>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:flow>
  </fo:page-sequence>
</fo:root>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to