forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r632692 - /forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl
Date Sun, 02 Mar 2008 01:48:10 GMT
Author: crossley
Date: Sat Mar  1 17:48:09 2008
New Revision: 632692

URL: http://svn.apache.org/viewvc?rev=632692&view=rev
Log:
Only add table headers when present in source. Can someone do better xsl?
Issue: FOR-1072

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl?rev=632692&r1=632691&r2=632692&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl
Sat Mar  1 17:48:09 2008
@@ -444,9 +444,11 @@
       </fo:table-column>
       <!-- End of hack for Fop support (if removing this hack, remember
       you need the <fo:table> element) -->
-      <fo:table-header font-size="10pt" font-family="serif">
-        <xsl:apply-templates select="tr[count(th) &gt; 0]"/>
-      </fo:table-header>
+      <xsl:if test="tr[count(th) &gt; 0]">
+        <fo:table-header font-size="10pt" font-family="serif">
+          <xsl:apply-templates select="tr[count(th) &gt; 0]"/>
+        </fo:table-header>
+      </xsl:if>
       <fo:table-body font-size="10pt" font-family="serif">
         <xsl:apply-templates select="tr[count(th) = 0]"/>
       </fo:table-body>



Mime
View raw message