When I try to load my table header dynamically using apply-templates, I get
the error below. The row/cell/block construct works fine if I enter the
table-headers manually in the stylesheet.
Any ideas or comments appreciated.
David
[ERROR] org.apache.fop.apps.FOPException: Currently only Table Rows are
supported in table body, header and footer
FOP 0.20.4
###########################################################
<fo:flow flow-name="xsl-region-body">
<fo:table>
<fo:table-column
column-width="73mm"/>
<fo:table-column
column-width="15mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-column
column-width="24mm"/>
<fo:table-header>
<xsl:apply-templates
mode="column-header"/>
</fo:table-header>
<fo:table-body>
<xsl:apply-templates/>
</fo:table-body>
</fo:table>
</fo:flow>
....
<xsl:template match="body" mode="column-header">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="column-titles" mode="column-header">
<fo:table-row>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
<xsl:template match="title" mode="column-header">
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>
#############################################################
This works fine:
<fo:table-header>
<fo:table-row>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
Method Name
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
Procedure
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
Attribute
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
Specification
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
1 Month
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
3 Months
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
1 Month
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
3 Months
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
1 Month
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm">
<fo:block font-size="7pt" font-weight="bold">
3 Months
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be
privileged. It is intended for the addressee(s) only. Access to this E-mail by
anyone else is unauthorized. If you are not an addressee, any disclosure or
copying of the contents of this E-mail or any action taken (or not taken) in
reliance on it is unauthorized and may be unlawful. If you are not an
addressee, please inform the sender immediately.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]