Have a look at http://xml.apache.org/fop/faq.html : Page numbers are not properly right aligned. This happens for fo:page-number-citation elements if the citation occurs before FOP formatted the requested page, usually in TOC or index pages.
It is caused by the problem that FOP has to guess how much space the yet unknown page number will occupy, and usually the guesses are somewhat off. You can try to use a non-proportional font like Courier to remedy this. However, this is likely to look ugly, and wont fix the problem completely. ----- Original Message ----- From: "Afshartous, Nick" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 3:39 PM Subject: TOC - page numbers not justified > > Hi, > > I'm trying to generate a table of contents using a fragment > similar to the example in Ch 10 of Pawson's book > > <xsl:for-each select="html:html/html:body/html:h1"> > > <fo:block text-align-last="justify"> > <xsl:value-of select="."/> > <fo:inline> > <fo:leader leader-pattern="dots"/> > <fo:page-number-citation ref-id="{.}"/> > </fo:inline> > </fo:block> > > </xsl:for-each> > > > The problem I'm seeing though is that the page numbers > in the contents are <<sample.pdf>> not right justified (see attached). > Thanks for any suggestions > on how to resolve this. > -- > Nick > > ---------------------------------------------------------------------------- ---- > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]