cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Konovalov <>
Subject PageBreaks in Excel-HTML transformer
Date Wed, 08 Feb 2006 18:59:10 GMT

I am trying to fix the following bug in the large Cocoon 2.0.4 project:

In produced multi-page Excel [2000/2003] document some break-points are shifted by 3 lines
(unlike Word document). That makes it look very messy.

After some analysis, I came to the conclusion that our Excel-HTML trasformer
strips away both  <page-break> and HTML <table> elements.
I was able to re-introduce it by modifying page-break template:
instead of:  <xsl:template match="page-break"/>  introduce:
<xsl:template match="page-break"> 
        <br style="page-break-after:always;">

However subsequent HTML serializer with mime-type="application/"
throws away these page-break-after, and introduces its own page-break-before
in the wrong places (shifted by 3 lines):
<tr height=17 style='page-break-before:always;height:12.75pt' xmlns="">...

1) Why is that happening in a standard Cocoon HTMLTransformer (with mime type Excel)?
Is there any way to prevent it / fix that problem ?

2) Another possible alternative for us would be to put every page (table)
in a separate Excel WorkSheet (so user can print all of them hopefully separated corrected
in print).
That would probably require changing page-break template (see above)
in Excel-HTML transformer.  What/how to change it so that page-break becomes
a signal to put the data in the next WorkSheet ?

Here is the part of the transformer regarding Excel (maybe I need to modify something here?):

                        <x:Name> discussionsheet</x:Name>
                         <x:PageBreakZoom>20</x:PageBreakZoom><!-- was 60 -->
                             <xsl:for-each select="/document/helper-info/row-breaks/row">
                                    <x:Row><xsl:value-of select="."/></x:Row>

Please help !
Thank you in advance, 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message