You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by ek...@pg.ebx.com on 2001/10/15 06:18:41 UTC
fo:leader problem
hi all,
I'm using FOP-0.20.1to generate pdf files.
I have used fo:leader in a table cell, but I don't know why the dotted line
just end, although there still have many whitespace in the cell. Are you
have any solutions for this problem?
Thanks.
The following is my xsl and the attachment of the pdf file:
<xsl:template match="division/toc">
<fo:block margin-left="1pc" margin-right="7pc" space-before="13pt"
space-after="13pt">
<fo:table>
<fo:table-column column-width="4.3in"/>
<fo:table-column column-width="3.0in"/>
<fo:table-body>
<xsl:for-each select="cont">
<xsl:variable name="toc.cont.value">
<xsl:value-of select="."/>
</xsl:variable>
<fo:table-row>
<fo:table-cell>
<fo:block xsl:use-attribute-sets
="division.toc.style">
<!--
<xsl:value-of select="substring-before
($toc.cont.value,'<ref>')"/>
-->
<xsl:value-of select="tc"/>
<fo:leader leader-pattern="rule" rule-style
="dotted" leader-alignment="reference-area"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="start"
xsl:use-attribute-sets="division.toc.style">
<xsl:value-of select="ref"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
(See attached file: dobaindia.pdf)
best rgds,
ektan