Hi, I', trying to do a toc using a table. The xsl code is <xsl:template match="toc-table"> <fo:table space-before.optimum="6pt"> <fo:table-column column-width="14mm"/> <fo:table-column column-width="101mm"/> <fo:table-column column-width="12mm"/> <fo:table-column column-width="7mm"/> <fo:table-column column-width="101mm"/> <fo:table-column column-width="12mm"/> <fo:table-body> <xsl:for-each select="row"> <fo:table-row space-before.optimum="{space-before}"> <xsl:for-each select="cell"> <fo:table-cell> <xsl:apply-templates select="toc-text|photo|page-number|basic-link"/> </fo:table-cell> </xsl:for-each> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </xsl:template>
<xsl:template match="toc-text"> <fo:block border-width="1pt" border-color="#FFFF00" wrap-option="wrap" font-size="{font-size}" font-style="normal" font-weight="{font-weight}" text-align-last="{align}" line-height="{line-height}" font-family="sans-serif"> <xsl:value-of select="internal-text"/> </fo:block> </xsl:template> <xsl:template match="link-text"> <xsl:value-of select="."/> </xsl:template> <xsl:template match="leader-pattern"> <fo:leader leader-pattern="dots" leader-length.minimum="0mm" leader-length.maximum="95mm"/> </xsl:template> <xsl:template match="page-number"> <fo:block border-width="1pt" border-color="#FF00FF" wrap-option="wrap" font-size="{font-size}" font-style="normal" font-weight="{font-weight}" text-align-last="end" line-height="{line-height}" font-family="sans-serif"> Pag. <fo:page-number-citation ref-id="{ref-id}"/> </fo:block> </xsl:template> <xsl:template match="basic-link"> <fo:block font-size="{font-size}" font-style="normal" font-weight="{font-weight}" text-align-last="end" line-height="{line-height}" font-family="sans-serif"> <fo:basic-link internal-destination="{ref-id}"> <xsl:apply-templates select="link-text|leader-pattern"/> </fo:basic-link> </fo:block> </xsl:template> Everything seems to work, but link areas are placed in a wrong way (but internal links work fine!), outside the cells containing the links. I'm using fop 0.15 to do this. Could anyone help me please? Thank you -- Stefano Angelici - Sviluppo Software eLogic S.r.l. - Sistemi Internet per le Aziende - www.elogic.it Via Paolo Nanni Costa, 30 - 40133 Bologna Tel: 0513145611 Fax: 0513145699