right aligned toc

Hi all!

I'm using the following snippet to produce my toc. Can
anyone confirm that this setup should yield right-aligned
page numbers and left aligned text, i.e:

Chapter A...........12
Chapter Beta........14


<xsl:template match="report/chapters">
    <xsl:for-each select="chapter">
      <fo:block
        font-family="{$fontfamily-default}"
        text-align-last="justify"
        margin-left="0pt"
        space-before="5pt"
        font-size="{$fontsize-toc-level1}">
        <xsl:value-of select="title/para"/>
        <fo:leader leader-pattern="dots"/>
        <fo:page-number-citation
ref-id="{generate-id(title)}"/>	
      </fo:block>
    </xsl:for-each>
</xsl:template>

I'm using FOP and the right edge is pretty ragged, so the
question is if my XSL is incorrect, or if it's an issue with
FOP.

Thanks!

Magnus Sjöberg

Received on Tuesday, 18 December 2001 10:39:10 UTC