Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hi, while I am trying to upgrade fop to 1.X version I am getting follwoing error. Any idea on this?

2876539Sep 29 2015 — edited Sep 29 2015

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 &lt; 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 &lt; 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 &lt; 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.

  1. count(*)
  2. position()
  3. number(position())

Please suggest me how I can get out of this issue.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2015
Added on Sep 29 2015
1 comment
719 views