Hi,
I'm trying to generate dynamic rows, i' can able to get results for a row. Once my XML values greater than that of the columns, , i'm getting ArrayIndexOutOfBoundException
Any Help ?
<fo:block>
<fo:table border-collapse="separate">
<fo:table-column column-width="85pt"/>
<fo:table-column column-width="85pt"/>
<fo:table-column column-width="85pt"/>
<fo:table-column column-width="85pt"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell border-width="0.5mm" border-style="solid" >
<fo:block>title 1</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm" border-style="solid" >
<fo:block>title 2</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm" border-style="solid" >
<fo:block>title 3</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.5mm" border-style="solid" >
<fo:block>title 4</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<xsl:for-each select="<xmlelement/*">
<fo:table-cell border-style="solid" padding="6pt">
<fo:block>
<xsl:value-of select="." />
</fo:block>
</fo:table-cell>
</xsl:for-each>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
Error :-
C:\FOP\fop-0.20.3>java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib
\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.j
ar org.apache.fop.apps.Fop -xsl test.xsl -xml test.xml -pdf test.pdf
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[INFO]: [1]
[WARN]: table-layout=auto is not supported, using fixed!
[INFO]: [2]
[ERROR]: java.lang.ArrayIndexOutOfBoundsException
thans in advance.
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs