xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Madunic" <Mario_Madu...@newflyer.com>
Subject TOC link issue with referenced page number and text-align-last=justify
Date Thu, 18 Mar 2010 14:12:50 GMT
(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?

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.


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