Re: [xsl] [xsl-fo] marker bug in FOP?

Subject: Re: [xsl] [xsl-fo] marker bug in FOP?
From: Geert Bormans <geert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Aug 2009 10:51:34 +0200
I got an answer on the FOP list for this

In case someone is interested...

FOP 0.95 can't deal with empty markers correctly
The issue is solved in trunk,
but there is also a simple work-around for FOP0.95 (or earlier) users:
simply put an invisible character in

FOP has been annoying me with warning messages,
one for every empty marker.
These warning messages are now gone too

So for FOP users, I believe it is a good idea,
not to use empty markers at all,
but simply put in a "zero-width space"

works a charm

Geert



At 13:32 8/08/2009, you wrote:
Dear all,

I have hit something that seems to me a bug in FOP.

Is this a known bug?
And if yes, is there a known workaround?

I am listing columns with dictionary terms.
Terms can have long descriptions.
If a term continues to the next page, I need to add an arrow in the footer

This is my region after

<fo:static-content flow-name="mt-region-after">
<fo:block font-size="8pt" text-align-last="justify"> <fo:leader leader-pattern="space"/>
<fo:page-number/>
<fo:leader leader-pattern="space"/>
<fo:retrieve-marker retrieve-class-name="right-arrow" retrieve-position="last-starting-within-page"/>
</fo:block>
</fo:static-content>


This is an excerpt of a term

<fo:block padding-bottom="2mm">
<fo:block>
<fo:inline font-size="8pt" font-weight="bold">my little term</fo:inline>
</fo:block>
<fo:block keep-with-previous="always">
<fo:marker marker-class-name="this-term">my little term</fo:marker>
<fo:marker marker-class-name="right-arrow">?</fo:marker>
</fo:block>
<fo:list-block margin-left="3mm" space-before="0pt" space-after="0pt">
<fo:list-item>
<fo:list-item-label>
<fo:block line-height="1.0">
<fo:inline font-size="8pt">AA</fo:inline>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="10mm">
<fo:block line-height="1.0">
<fo:inline font-size="8pt" font-style="italic">aaaaa</fo:inline>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:list-block margin-left="3mm" space-before="0pt" space-after="0pt">
<fo:list-item>
<fo:list-item-label>
<fo:block line-height="1.0">
<fo:inline font-size="8pt">BB</fo:inline>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="10mm">
<fo:block line-height="1.0">
<fo:inline font-size="8pt">bbbbbbbbb</fo:inline>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block keep-with-previous="always">
<fo:marker marker-class-name="right-arrow"/>
</fo:block>
</fo:block>


In my opinion, I make the marker empty when a term ends on a page (see the keep-with-previous)

In Antenna House, this works.
In FOP, I get the arrows, always, which seems wrong to me.
any suggestions?

Thanks

Geert

Current Thread