W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2001

right aligned toc

From: Magnus Sj÷berg <magnus.sjoberg@secode.com>
Date: Tue, 18 Dec 2001 16:38:36 +0100
Message-ID: <3C1F62FC.9E912B36@secode.com>
To: www-xsl-fo@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT