org.apache.fop.fo.ValidationException: "fo:table-row" is missing child elements. Required content model: (table-cell+) (No context info available)
foloowing is my piece of code:
<fo:table space-before="1mm" space-after="2mm">
<xsl:for-each select="aNXXSeq">
<xsl:if test="@count < 16">
<fo:table-column column-width="12mm"/>
</xsl:if>
</xsl:for-each>
<fo:table-body>
<fo:table-row font-size="9pt" line-height="15pt" font-family="Times" font-weight="bold">
<xsl:for-each select="aNXXSeq">
<xsl:if test="@count < 16">
<fo:table-cell ><fo:block>NXX</fo:block></fo:table-cell>
</xsl:if>
</xsl:for-each>
</fo:table-row>
<fo:table-row font-size="9pt" line-height="15pt" font-family="Times" font-weight="bold">
<xsl:for-each select="aNXXSeq">
<xsl:if test="@count < 16">
<xsl:apply-templates select="nxx"/>
</xsl:if>
</xsl:for-each>
</fo:table-row>
</fo:table-body>
</fo:table>
I know that in FOP 1.x, at least one table cell data should present but i want, there should be no error when there is no data also
I have used below functions with xsl:if and xsl:choose but in any case i could not able to skip the error.
- count(*)
- position()
- number(position())
Please suggest me how I can get out of this issue.