[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: [xsl-fo] marker bug in FOP?
From: Geert Bormans <geert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Aug 2009 10:51:34 +0200
Re:  [xsl-fo] marker bug in FOP?
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.