I'm trying to get my page numbers hot inside a TOC. Here's the basic code:
 

<fo:block text-align-last="justify" margin-top="6pt" margin-left="4.9pc">

<fo:inline font-weight="bold">

<xsl:value-of select="*[contains(@class,' topic/title ')]"></xsl:value-of>

</fo:inline>

<fo:leader leader-pattern="dots"/>

<fo:basic-link>

<xsl:attribute name="internal-destination"><xsl:value-of select="$id-value"/></xsl:attribute>

<fo:page-number-citation ref-id="{$id-value}"/>

</fo:basic-link>

</fo:block>

 

The ouptut text is fine, but the page number is not hot. It seems that using text-align-last somehow messes up the link. I can only get a hot page number if I remove that attribute, or if I wrap the link in its own fo:block. (However that forces the page number to the next line, which is unacceptable.) Is this a known bug, and is there a workaround? BTW, I'm using FOP v0.20.5.

Thanks!

Mark Fletcher

Reply via email to