forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r651905 - /forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl
Date Sun, 27 Apr 2008 09:49:37 GMT
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">



Mime
View raw message