DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29459>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29459

Error in processing xml-file with xsl-stylesheet

           Summary: Error in processing xml-file with xsl-stylesheet
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If I run fop with:
fop.bat -xml daten.xml -xsl daten.xsl daten.pdf I got the error:
[ERROR] org.apache.fop.apps.FOPException: A table cell must be child of 
fo:table-row, not fo:table-body
I chekc th fo-output with xalan.bat and all looks fine.
If I run fop with:
fop.bat xalanout.fo daten.pdf
it works.
I assume the probleme is located in the following codesnip:

    <xsl:if test="position() mod 2">
      <xsl:text disable-output-escaping="yes">&lt;fo:table-row 
height=&quot;14cm&quot; &gt;
      </xsl:text>
    </xsl:if>
    <xsl:call-template name="RezeptCell"/>
    <xsl:if test="not(position() mod 2)">
      <xsl:text disable-output-escaping="yes">&lt;/fo:table-row&gt;
      </xsl:text>
    </xsl:if>
    <xsl:if test="position()=last() and position() mod 2">
      <xsl:text disable-output-escaping="yes">&lt;/fo:table-row&gt;
      </xsl:text>
    </xsl:if>

Reply via email to