xsl-list
[Top] [All Lists]

[xsl] Cross-reference page number off by one

2006-11-21 14:42:45
Hello,

I am using fo:page-number-citation to supply the page number for cross 
references within a single document. I am using Antenna House version 3.4 to 
render the FO which I created with SAXON 6.5.3. 

I have one instance where the target of the reference has been pushed off the 
bottom of a page, when it was justified, resulting in it appearing at the top 
of the following page. In this case the page number returned by 
fo:page-number-citation is one less than the page number that the target 
appears on. The actual link, in the PDF, does take you to the correct place 
even though the page number in the reference is wrong.

Is there some trick that I am unaware of that corrects this problem, or have I 
found a bug in the FO rendering engine?

Here's a snippet of the code that sets the id on the block:

                <fo:block id="{$targId}"> 
                        <xsl:apply-templates/>
                </fo:block>


Here's a snippet of the code that references the id in order to obtain the page 
number:

                   <fo:basic-link internal-destination="{$myTargId}">
                         <xsl:value-of select="$linktxt"/><xsl:text> on page 
</xsl:text><fo:page-number-citation ref-id="{$myTargId}"/>
                   </fo:basic-link>

Thanks,
  Craig



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] Cross-reference page number off by one, Craig Sampson <=