Title: TOC - page numbers not justified
< From: Mark Baier [mailto:[EMAIL PROTECTED]]
<
<  i think putting your TOC into a table with two columns could
< solve the problem...
  
Thanks for the suggestion!  I ended up using 3 columns
(title, dots, page number) and it looks great (see attached).
Thie template is below.  Maybe someone can put this in the FAQ
for "page numbers are not properly right aligned" ?
 
       http://xml.apache.org/fop/faq.html#faq-N10255
 
   Nick
 
 <xsl:template   match="/" mode="toc">
      <fo:block text-align="center" font-size="large" space-after="1em">
         Table of Contents
      </fo:block>
 
      <fo:table>
 <fo:table-column column-width="6cm"/>
 <fo:table-column column-width="12cm"/>
 <fo:table-column column-width="2cm"/>
 
        <fo:table-body>
 
      <xsl:for-each select="html:html/html:body/html:h1">
 
   <fo:table-row border-width="0.5pt">
 
     <fo:table-cell>
       <fo:block text-align="left">
                 <xsl:value-of select="."/>
       </fo:block>
     </fo:table-cell>
 
     <fo:table-cell>
              <fo:block>
       <fo:inline> <fo:leader leader-pattern="dots"/> </fo:inline>
               </fo:block>
     </fo:table-cell>
 
     <fo:table-cell>
       <fo:block start-indent="0.5cm">
                  <fo:page-number-citation ref-id="{.}"/>
       </fo:block>
     </fo:table-cell>
 
   </fo:table-row>
 
      </xsl:for-each>
 
      </fo:table-body>
      </fo:table>
 
   </xsl:template>
 
 
 -----Original Message-----
From: Mark Baier [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 9:50 AM
To: [EMAIL PROTECTED]
Subject: AW: TOC - page numbers not justified

Hi,
 
i think putting your TOC into a table with two columns could
solve the problem...
 
Mark
 
 
-----Urspr�ngliche Nachricht-----
Von: Afshartous, Nick [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. Februar 2003 15:40
An: '[EMAIL PROTECTED]'
Betreff: 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

Attachment: sample.pdf
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to