Hi,
I am a beginner to FOP. I am
trying to convert an XML to PDF from a Java
app. The data is to be displayed in a table. But when I try to put
headers into the table i am getting the following error:
org.apache.fop.apps.FOPException: Currently only Table Rows are supported
in table body, header and footer
My xsl looks like
this:
======================================================================
<fo:table>
<fo:table-header> <fo:table-row> <fo:table-cell> <fo:block font-size="12pt" font-weight="bold">Header1</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="12pt" font-weight="bold">Header2</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="12pt" font-weight="bold">Header3</fo:block> </fo:table-cell> </fo:table-row> </fo:table-header> <fo:table-body>
<fo:table-row> <fo:table-cell> <fo:block> <xsl:value-of select="Data1"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> <xsl:value-of select="Data2"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> <xsl:value-of select="Data3"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> =====================================================
I am using fop-0.20.5. Can you pls suggest as to what could be the
cause?
Thanks.
Regards, Kaustuv Sharma |
Title: Message
- Table Header problem Kaustuva Narayan Sharma
- Re: Table Header problem Clay Leeds
- RE: Table Header problem Kaustuva Narayan Sharma
- RE: Table Header problem Pascal Sancho
- RE: Table Header problem Pascal Sancho