Chris, Sorry about that. I hope the below is what you meant, it's the output from the XSLT snippet.
<fo:block font-family="Arial" font-size="9pt" font-weight="normal" text-align-last="justify"> <fo:basic-link internal-destination="SR1357-part-d75e490-383" destination-placement-offset="0.00in">011202 <fo:leader leader-pattern="dots" leader-alignment="reference-area"/>1-<fo:page-number-citation ref-id="SR1357-part-d75e490-383"/></fo:basic-link> </fo:block> Marijan (Mario) Madunic Publishing Specialist New Flyer Industries -----Original Message----- From: Chris Bowditch [mailto:bowditch_ch...@hotmail.com] Sent: Friday, March 19, 2010 5:45 AM To: fop-users@xmlgraphics.apache.org Subject: Re: TOC link issue with referenced page number and text-align-last=justify 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-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -------------------------------------------------------------------- Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org