Leaders work just fine.  Correct page number for content works too if you id the start block of each entry in you table of contents.  Below each "dx-element" contains an attribute "ref-id" which fo:page-number-citation uses to deduce the page on which each particular item.

                    <xsl:for-each select="./dx-element">
                        <fo:list-item margin-left="9pt">
                            <fo:list-item-label end-indent="label-end()">
                                <fo:block font-size="9pt" line-height="1.0"> </fo:block> <!-- you table number goes here (I'm not filling the label)-->
                            <fo:list-item-body start-indent="body-start()">
                                <fo:block font-size="9pt" font-weight="normal" text-align-last="justify" margin-right="10pt">
                                    <xsl:value-of select="text()"/>  <!-- then name of the item list (a dx-element) -->
                                    <fo:leader leader-pattern="dots"/>
                                        <xsl:attribute name="ref-id">
                                            <xsl:value-of select="text()"/>  <!-- the page number -->

If you don't want the list of tables to expand to the full width of your region-body, you need a fixed-width bounding block (likely with overflow="hidden")

On 02/09/2013 04:08 PM, Terence M. Bandoian wrote:
On 2/1/2013 1:44 PM, Steve Fogel wrote:

Thanks for the reply.

Would the list approach you suggest work if I want to have a title, then a leader (....) then a page # in the list body?

Wondering if there isn't a simpler way to just specify a minimum width for an inline area. Below is an example of what I want to output as a list of tables.

2-7   createTable Parameters ........................... 2-61
2-8   createView Parameters ............................ 2-62
2-9   createSynonym Parameters ......................... 2-63
2-10  createProc Parameters ............................ 2-64
2-11  createPackage Parameters.......................... 2-65

You can see that the table number at the left can have a varying width, but the area needs to be fixed width so the table names are all left-aligned. FOP 1.1 seems to ignore the width property for the <fo:inline> element.



Steve Fogel | Information Architect, Oracle Database | 650.506.4914
Oracle Server Technologies Information Development
500 Oracle Parkway | M/S 4op1126 | Redwood Shores, CA 94065

-----Original Message-----
From: Terence M. Bandoian [mailto:terence@tmbsw.com]
Sent: Friday, February 01, 2013 3:41 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: How get fixed width for inline FO ?

On 2/1/2013 2:37 AM, Steve Fogel wrote:
Hi, all..

I'd like to specify a fixed width for an inline FO with FOP 1.1. It's in a List of Tables in the front matter of a book. For each table in the list, table number area should be fixed width followed by table title.

I tried this (simplified):

<fo:block start-indent="3.5em">
    <fo:basic-link internal-destination="unique_id_24">
        <fo:inline inline-progression-dimension="6em">4-5</fo:inline>Summary of Commands

I also tried using just the width property instead of inline-progression-dimension.

Neither worked. Can someone help?



Hi, Steve-

I don't remember all the details but I did something like this when I needed fixed horizontal widths in the footer of a document:


<fo:list-item-label end-indent="label-end()"> <fo:block></fo:block> </fo:list-item-label>

<fo:list-item-body start-indent="body-start()"> <fo:block></fo:block> </fo:list-item-body>


Hope it helps.

-Terence Bandoian

Hi, Steve-

Sorry I took so long to respond.  Have you looked at:


One of the examples included with FOP is leader.fo which "shows different uses of fo:leader, p.e. as rule or in table of content(s)".  I haven't looked at the example and don't know if it works but, based on the description, it seems to be along the lines of what you're looking for.  You may have to get creative to get exactly what you want.

Hope this helps.

-Terence Bandoian

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org