You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/08/08 17:26:09 UTC

[Bug 3044] New: - keep-together not functioning

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3044

*** shadow/3044	Wed Aug  8 08:26:09 2001
--- shadow/3044.tmp.5558	Wed Aug  8 08:26:09 2001
***************
*** 0 ****
--- 1,128 ----
+ +============================================================================+
+ | keep-together not functioning                                              |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3044                        Product: Fop                     |
+ |       Status: NEW                         Version: all                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: page-master/layout      |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: fop-dev@xml.apache.org                                       |
+ |  Reported By: clark.valentine@smginc.com                                   |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When generating PDF, keep-together.* appears to not function, as page break 
+ appears inside block marked as 'keep-together.within-page="always"'.  Seems to 
+ occur both within a table cell and outside of tables.  Sample code:
+ 
+ <?xml version="1.0" encoding="UTF-8"?>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+   <fo:layout-master-set>
+     <fo:simple-page-master 
+ 	margin-right="2.54cm"
+ 	margin-left="2.54cm"
+ 	margin-bottom="0cm"
+ 	margin-top="1.5cm"
+ 	page-width="21.59cm"
+ 	page-height="27.94cm"
+ 	master-name="first">
+       <fo:region-before extent="2.54cm"/>
+       <fo:region-body margin-top="1cm" margin-bottom="2.54cm"/>
+       <fo:region-after extent="2.54cm"/>
+     </fo:simple-page-master>
+   </fo:layout-master-set>
+   
+   <fo:page-sequence master-name="first">
+     <fo:static-content flow-name="xsl-region-before">
+       <fo:block font-family="'Times'" line-height="14pt" font-size="10pt" 
+ 		text-align="end">Header</fo:block>
+     </fo:static-content>
+     <fo:static-content flow-name="xsl-region-after">
+       <fo:block font-family="'Times'" line-height="14pt" font-size="10pt" 
+ 		text-align="end">Page <fo:page-number/></fo:block>
+     </fo:static-content>
+     
+     <fo:flow flow-name="xsl-region-body">
+ 
+       <fo:table border-collapse="separate">
+ 	<fo:table-column column-width="4.1275cm"/>
+ 	<fo:table-column column-width="4.1275cm"/>
+ 	<fo:table-column column-width="4.1275cm"/>
+ 	<fo:table-column column-width="4.1275cm"/>
+ 
+     <fo:table-body>
+ 	  <fo:table-row>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" padding-left="2pt" background-
+ color="gray">
+ 	      <fo:block font-family="'Times'">items</fo:block>
+ 	    </fo:table-cell>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" padding-left="2pt" background-
+ color="gray">
+ 	      <fo:block font-family="'Times'">items</fo:block>
+ 	    </fo:table-cell>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" padding-left="2pt" background-
+ color="gray">
+ 	      <fo:block font-family="'Times'">items</fo:block>
+ 	    </fo:table-cell>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" border-right-style="solid" padding-
+ left="2pt" background-color="gray">
+ 	      <fo:block font-family="'Times'">items</fo:block>
+ 	    </fo:table-cell>
+ 	  </fo:table-row>
+ 	  <fo:table-row>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" border-bottom-style="solid" padding-
+ left="2pt" background-color="gray">
+ 	      <fo:block font-family="'Times'">item</fo:block>
+ 	    </fo:table-cell>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" border-bottom-style="solid" padding-
+ left="2pt" background-color="gray">
+ 	      <fo:block font-family="'Times'">item</fo:block>
+ 	    </fo:table-cell>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" border-bottom-style="solid" padding-
+ left="2pt" background-color="gray">
+ 	      <fo:block font-family="'Times'" line-height="16pt" font-
+ size="14pt">item</fo:block>
+ 	      <fo:block font-family="'Times'" line-height="16pt" font-
+ size="14pt">item</fo:block>
+ 	    </fo:table-cell>
+ 	    <fo:table-cell border-color="black" border-width="0.5pt" border-top-
+ style="solid" border-left-style="solid" border-bottom-style="solid" border-
+ right-style="solid" padding-left="2pt" background-color="gray">
+ 	      <fo:block font-family="'Times'" line-height="16pt" font-
+ size="14pt">item</fo:block>
+ 	    </fo:table-cell>
+ 	  </fo:table-row>
+ 	  <fo:table-row>
+ 	    <fo:table-cell number-columns-spanned="4" border-width="0.5pt" 
+ border-style="solid" padding="2pt">
+                 <!-- FOP will split the second block between pages -->
+                 <fo:block font-family="'Times'" line-height="21pt" font-
+ size="14pt" text-align="center" padding-top="5pt" keep-with-
+ next="always">Name</fo:block>
+                 <fo:block font-family="'Times'" line-height="21pt" font-
+ size="14pt" keep-together.within-page="always">Lots to do, let's get to work!  
+ Lots to do, let's get to work!  [repeat as necessary to fill page]</fo:block>
+             </fo:table-cell>
+           </fo:table-row>
+ 	</fo:table-body>
+       </fo:table>
+       <!-- It also doesn't work outside the table as an ordinary block. -->
+       <fo:block font-family="'Times'" line-height="21pt" font-size="14pt" text-
+ align="center" padding-top="5pt" keep-with-next="always">Name</fo:block>
+       <fo:block font-family="'Times'" line-height="21pt" font-size="14pt" keep-
+ together.within-page="always">Lots to do, let's get to work!  Lots to do, let's 
+ get to work!  [repeat as necessary to fill page]</fo:block>
+ 
+     </fo:flow>
+   </fo:page-sequence>
+ </fo:root>
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org