Hi,
I have seen some posts on this earlier this year (e.g, http://www.nabble.com/TOC-problem-with-text-align-last-t1432522.html#a3864138), but no solution that works for me…
The problem is quite simple; in my TOC the page numbers are not correctly aligned. In FOP 0.20.5 it worked, but with 0.92b (or the latest trunk) version it doesn’t.
I believe my code is straightforward:
<fo:block text-align-last="justify" font-family="Verdana" font-size="12pt" font-weight="bold"
space-before="12pt" space-after="6pt"
<xsl:apply-templates select="cws:title"/>
<fo:leader leader-pattern="dots"/>
<fo:page-number-citation ref-id="{generate-id()}"/>
</fo:block>
<fo:block text-align-last="justify" start-indent="0.76cm" font-family="Verdana" font-size="12pt"
space-before="6pt" space-after="3pt" space-after.conditionality="retain"
space-before.conditionality="retain">
<xsl:choose>
<xsl:when test="cws:lesson">
<xsl:apply-templates select="cws:title"/>
</xsl:when>
<xsl:when test="cwe:exercise">
<xsl:apply-templates select="cwe:info/cwe:title"/>
</xsl:when>
</xsl:choose>
<fo:leader leader-pattern="dots"/>
<fo:page-number-citation ref-id="{generate-id()}"/>
</fo:block>
<fo:block space-before.conditionality="retain" space-after.conditionality="retain"
space-after="3pt" space-before="6pt" font-size="12pt" font-family="Verdana"
start-indent="0.76cm" text-align-last="justify">Define the System Requirements (Creating the
PIM)<fo:leader leader-pattern="dots"/><fo:page-number-citation ref-id="N10A17"
/></fo:block>
…
Any clues?
Tx.,
Raphael