W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2010

TOC link issue with referenced page number and text-align-last=justify

From: Mario Madunic <Mario_Madunic@newflyer.com>
Date: Thu, 18 Mar 2010 09:05:49 -0500
Message-ID: <2DB2C93EEF05E04BBF1FBB36430B796D1FAC5366@nfil004.newflyer.com>
To: <www-xsl-fo@w3.org>
(using FOP .95 on Windows XP sp3)

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 incase 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?

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries


--------------------------------------------------------------------
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.
Received on Thursday, 18 March 2010 14:06:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 18 March 2010 14:06:26 GMT