[daisy] [JIRA] Created: (DSY-610) PDF Generation Fails for Documents with Tables

Caleb Callaway (JIRA) issues at cocoondev.org
Tue Feb 5 16:13:26 CST 2008


PDF Generation Fails for Documents with Tables
----------------------------------------------

         Key: DSY-610
         URL: http://issues.cocoondev.org//browse/DSY-610
     Project: Daisy
        Type: Bug
  Components: Frontend - publishing engine  
    Versions: 2.1    
 Reporter: Caleb Callaway
    Priority: Minor


Running Daisy 2.1, the following error occurs when generating a PDF document from a Daisy document that has tables in it:

	Failed to process pipeline
	Error(Unknown location): fo:table-row is missing child elements. Required Content Model: (table-cell+)

The offending code is in the document-to-xslfo.xsl:

  <xsl:template match="tr">
    <fo:table-row>
      <!-- Keep first row of a table always with the next, if it contains header cells -->
      <xsl:if test="position() = 1 and th">
        <xsl:attribute name="keep-with-next">always</xsl:attribute>
      </xsl:if>
      <xsl:apply-templates select="td|th"/>
    </fo:table-row>
  </xsl:template>

Removing this template block allows the transform to finish, but the resulting table formatting is incorrect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list