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:38:31 UTC

svn commit: r651904 - /forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl

Author: josch
Date: Sun Apr 27 02:38:30 2008
New Revision: 651904

URL: http://svn.apache.org/viewvc?rev=651904&view=rev
Log:
using fo:table-header to format tr/th rows (this keeps header rows and table together and repeats the table header on subsequent pages)

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=651904&r1=651903&r2=651904&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:38:30 2008
@@ -1195,11 +1195,17 @@
       </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[th]" />
+      </fo:table-header>
       <fo:table-body
                 font-size="10pt"
                 font-family="serif">
         <xsl:apply-templates
-                    select="tr" />
+                    select="tr[td]" />
       </fo:table-body>
     </fo:table>
 <!-- FIXME: Apache Fop does not support the caption element yet.



Re: svn commit: r651904 - /forrest/branches/UpdateFOPto094/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl

Posted by David Crossley <cr...@apache.org>.
Johannes would you please apply those changes to trunk as well.
This branch merged with trunk some time ago.

-David

> Author: josch
> Date: Sun Apr 27 02:38:30 2008
> New Revision: 651904
> 
> URL: http://svn.apache.org/viewvc?rev=651904&view=rev
> Log:
> using fo:table-header to format tr/th rows (this keeps header rows and table together and repeats the table header on subsequent pages)
> 
> 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=651904&r1=651903&r2=651904&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:38:30 2008
> @@ -1195,11 +1195,17 @@
>        </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[th]" />
> +      </fo:table-header>
>        <fo:table-body
>                  font-size="10pt"
>                  font-family="serif">
>          <xsl:apply-templates
> -                    select="tr" />
> +                    select="tr[td]" />
>        </fo:table-body>
>      </fo:table>
>  <!-- FIXME: Apache Fop does not support the caption element yet.
> 
>