xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bowditch <bowditch_ch...@hotmail.com>
Subject Re: TOC link issue with referenced page number and text-align-last=justify
Date Fri, 19 Mar 2010 10:45:12 GMT
Mario Madunic wrote:
> (using FOP .95 on Windows XP sp3)
> (sorry for the cross post with the FO list, meant to post here not there)
> 
> I have the following code:
> 
> <fo:block>
>   <xsl:call-template name="ct_ChooseAttributeSet" />
>   <fo:basic-link internal-destination="{@idref}" destination-placement-offset="0.00in"><xsl:value-of
select="concat(@partNumber, ' ')" /><fo:leader leader-pattern="dots" leader-alignment="reference-area"
/><xsl:value-of select="concat(@section, '-')" /><fo:page-number-citation ref-id="{@idref}"
/></fo:basic-link> </fo:block>
> 
> What is happening is the link works fine for the string generated before fo:page-number-citation
but not for the page number retrieved via the fo:page-number-citation. To be picky also the
'-' before the page-number-citiation is not linked also,
> 
> The call-template brings in an attribute set that contains the following (a called template
is used instead of attribute set due to not being able to dynamically generate an attribute
sets name via use-attribute-sets as in xsl:use-attribute-sets="as_NumericIndexEntry{$l_AS_Extension}",
just in case you were interested)
> 
> <xsl:template name="as_NumericIndexEntry">
>   <xsl:attribute name="font-family" select="$g_FontFamily" />
>   <xsl:attribute name="font-size" select="$g_FontSizeSmMed" />
>   <xsl:attribute name="font-weight" select="'normal'" />
>   <xsl:attribute name="text-align-last" select="'justify'" /> </xsl:template>
> 
> Seems that the text-align-last="justify" is the culprit. Is this a FOP bug? Solution?

To help us investigate can you send us a small sample FO file (not XSLT 
as you've provided above) that demonstrates the problem?

Thanks,

Chris

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


Mime
View raw message