xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Larner" <ian_lar...@uk.ibm.com>
Subject Regarding fo:leader
Date Wed, 02 Jan 2002 12:21:43 GMT
Meena,
The length and position of the leader before the page number depends on
several factors.  My XSL builds my TOC as a two-cell table, with the
following style of row for each entry.  The first cell creates the text
with a following leader up to the start of the second cell that has the
page number.  If you put both in the same cell (or outside a table), I
think that the leader woul go right up to the page number.  Also, you can
change the leader pattern and alignment if it better suits your needs.

<fo:table-row line-height="12pt">
<fo:table-cell>
<fo:block font-weight="bold" start-indent="0pt">
<fo:basic-link color="black" internal-destination="cxbkpcon.xml">ActiveX to
EJB bridge concept articles</fo:basic-link>
<fo:leader text-align="justify" color="black" leader-pattern="dots"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="cxbkpcon.xml"/>
</fo:block>
</fo:table-cell>
</fo:table-row>

Regards,
Ian

Ian Larner
User Technologies, IBM Hursley Lab, England
Internal: 246440    External: +44 1962 816440    Fax: +44 9162 816151
Mailpoint 095         email: ian_larner@uk.ibm.com

"The credit belongs to the man ...in the arena,  (who) knowing there is no
effort without ...shortcomings, actually strives to do the deeds..."
Theodore Roosevelt
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hi
I've a .fo file that has fox namespace in it. When  trying to create the
toc, with the following code,
<fo:leader
        leader-pattern="rule"
        leader-pattern-width="5pt"
         keep-with-next.within-line="always"
/>

I get the output as below

chapter1--------------
    section1-----------                           2
   section  abcde---                           3
    -----------------------
chapter2-------------

But I require an output as follows
chapter1-----------------------------------------1
    section1---------------------------------------2
    section2---------------------------------------3
chapter2------------------------------------------4

regds,
Meena.



Mime
View raw message