Subject: [xsl] Problems with XSL-FO Table From: "Philip Vallone" <philip.vallone@xxxxxxxxxxx> Date: Fri, 01 Dec 2006 23:12:39 -0500 |
Hi All, I am trying to build a dynamic table in FO, but having little luck. I keep receiving the following error: [error]java.lang.ArrayIndexOutofBoundsException: -2 Here is my XML: <table> <tbody> <tr> <td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> </tr> <tr> <td>test 1</td> <td>test 2</td> <td>test 3</td> </tr> <tr> <td>cell 1</td> <td>cell 2</td> <td>cell 3</td> </tr> </tbody> </table> I am using the Apache FOP processor Here is my XSLT: <xsl:template match="table"> <fo:block> <xsl:for-each select="tbody"> <fo:table> <fo:table-body> <xsl:for-each select="tr"> <fo:table-row> <xsl:for-each select="td"> <fo:table-cell> <fo:block> <xsl:value-of select="."/> </fo:block> </fo:table-cell> </xsl:for-each> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </xsl:for-each> </fo:block> </xsl:template> Thanks, Phil
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using xsl:key, Wendell Piez | Thread | RE: [xsl] Problems with XSL-FO Tabl, Ian Proudfoot |
Re: [xsl] variable rtf as querystri, David Carlisle | Date | [xsl] Creating tables, columns and , Muthu Kumar |
Month |