Bug 3898 - <fo:page-number-citation> fails if id is in block with break-before="page"
Summary: <fo:page-number-citation> fails if id is in block with break-before="page"
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.3
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 14039 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-01 07:06 UTC by Thomas K
Modified: 2012-04-01 06:37 UTC (History)
3 users (show)



Attachments
XSLFO file that reproduces what I believe is a variation of this problem (13.73 KB, text/xml)
2003-03-16 17:08 UTC, Ricardo Amador
Details
The previous XSLFO file (attachement 5357) with some text before "Chapter 1" causes the first page to be also incorrect (13.81 KB, text/xml)
2003-03-16 17:47 UTC, Ricardo Amador
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas K 2001-10-01 07:06:33 UTC
Version: FOP 0.20

If you put the id attribute on a block which has attribute break-before="page", 
the page-number-citation doesn't work. Example:
<fo:block>Introduction: Page <fo:page-number-citation ref-
id="intro"/></fo:block>
<fo:block break-before="page" id="intro">Introduction</fo:block>
Comment 1 Bjoern Dannemann 2002-04-16 07:29:02 UTC
I have found this bug in fop version 20.3, too.
If break-before="page" is set in the same block as the id, no page number will 
be shown.
Comment 2 Bjoern Dannemann 2002-04-16 07:41:34 UTC
Try workaround:


<fo:block>Introduction: Page <fo:page-number-citation ref-
id="intro"/></fo:block>
<fo:block break-before="page"/>
<fo:block id="intro">Introduction</fo:block>
Comment 3 Martin Krzysiak 2002-10-01 18:51:12 UTC
I would like to confirm this bug, too.

Thanks for the workaround. :)
Comment 4 Martin Krzysiak 2002-10-02 15:28:19 UTC
I have checked the workaround and it does not work.

This bug doesn't depend on the break-before/after attribute.
The problem seems to be (for me at least) that
fo:page-number-citation does not output the last referenced page
number (e.g.: in a TOC).

Another workaround for this is to print a dummy fo:page-number-citation
right after the last TOC-entry.
It should have the same color as the background (appears to be the best
solution for now).
Comment 5 Oleg Tkachenko 2002-11-13 19:23:10 UTC
*** Bug 14039 has been marked as a duplicate of this bug. ***
Comment 6 Adam Mark 2003-02-21 16:50:43 UTC
I'm not getting the LAST citation in a node set when break-before="page".   
If I remove this attribute, I get all citations.
Comment 7 Ricardo Amador 2003-03-16 17:06:10 UTC
I'm using a workaround which is a a slight variation of the one proposed by 
Martin Krzysiak in 2002-10-02. I'm adding a page-number-citation that refers 
to an unknown id.

I will attach a XSLFO file that reproduces what is probably a variation of the 
same problem. Hope it helps...

I'm using 0.20.5rc2
Comment 8 Ricardo Amador 2003-03-16 17:08:29 UTC
Created attachment 5357 [details]
XSLFO file that reproduces what I believe is a variation of this problem
Comment 9 Ricardo Amador 2003-03-16 17:47:44 UTC
Created attachment 5358 [details]
The previous XSLFO file (attachement 5357) with some text before "Chapter 1" causes the first page to be also incorrect
Comment 10 J.Pietschmann 2003-03-20 02:03:10 UTC
The problem was caused that the ID was created before the break was applied.
If this was the last ID to be satisfied for a TOC page, the TOC swas rendered,
while the ID was still not configured and assigned a number.
This is fixed in CVS for 0.20.5rc3.
Comment 11 Glenn Adams 2012-04-01 06:37:02 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed