You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mark Fletcher <ma...@workday.com> on 2006/03/30 21:16:54 UTC

TOC problem with basic-link inside a justified block

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



Re: TOC problem with basic-link inside a justified block

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Mark Fletcher wrote:
> 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.

Hot spot generation is rather buggy in 0.20.5, although this particular
problem hasn't been reported yet. I don't think there is a workaround.
You could check the development release 0.91beta, whether it works for
you (expect to make quite a view changes, as many workarounds for
deficiencies in 0.20.5 are no longer necessary and may actually be
harmful).

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org