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) > 0]"/>
- </fo:table-header>
+ <xsl:if test="tr[count(th) > 0]">
+ <fo:table-header font-size="10pt" font-family="serif">
+ <xsl:apply-templates select="tr[count(th) > 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>