On 2/9/2013 5:35 PM, Rob Sargent wrote:
On 02/09/2013 04:31 PM, Rob Sargent wrote:
Note that there needs to be a bounding fo:list-block on this. I'm
actually in nested lists and didn't want to show the entire template.
Sorry if this confused anyone.
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-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"/>
<fo:page-number-citation>
<xsl:attribute name="ref-id">
<xsl:value-of select="text()"/> <!-- the page number -->
</xsl:attribute>
</fo:page-number-citation>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
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:
Hi...
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.
Thx
Steve
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:tere...@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
</fo:basic-link>
</fo:block>
I also tried using just the width property instead of
inline-progression-dimension.
Neither worked. Can someone help?
Thx
Steve
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-block
provisional-distance-between-starts="2.6in"
provisional-label-separation="0">
<fo:list-item>
<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>
</fo:list-item>
</fo:list-block>
Hope it helps.
-Terence Bandoian
Hi, Steve-
Sorry I took so long to respond. Have you looked at:
http://xmlgraphics.apache.org/fop/examples.html
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
Hi, Rob-
This is a great example that appears to be exactly what Steve is looking
for. Thanks for the insight.
-Terence Bandoian
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org