You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by jo...@apache.org on 2008/04/27 11:49:37 UTC
svn commit: r651905 -
/forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl
Author: josch
Date: Sun Apr 27 02:49:28 2008
New Revision: 651905
URL: http://svn.apache.org/viewvc?rev=651905&view=rev
Log:
make sure no empty table-header gets inserted (fix to previous commit)
Modified:
forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl
Modified: forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl
URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl?rev=651905&r1=651904&r2=651905&view=diff
==============================================================================
--- forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl (original)
+++ forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl Sun Apr 27 02:49:28 2008
@@ -1195,12 +1195,14 @@
</fo:table-column>
<!-- End of hack for Fop support (if removing this hack, remember
you need the <fo:table> element) -->
- <fo:table-header
+ <xsl:if test="tr[ht]">
+ <fo:table-header
font-size="10pt"
font-family="serif">
- <xsl:apply-templates
+ <xsl:apply-templates
select="tr[th]" />
- </fo:table-header>
+ </fo:table-header>
+ </xsl:if>
<fo:table-body
font-size="10pt"
font-family="serif">