CVS: jfor/samples/cocoon/tests/tables block-keep-together.fo.xml,NONE,1.1

Marra Roberto <[email protected]> Thu, 04 Jul 2002 04:44:30 -0700
Newsgroups gmane.text.xml.jfor.cvs
Message-ID <[email protected]>
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/tables
In directory usw-pr-cvs1:/tmp/cvs-serv28363

Added Files:
	block-keep-together.fo.xml 
Log Message:
no message

--- NEW FILE: block-keep-together.fo.xml ---
<?xml version="1.0" encoding="iso-8859-1"?>

<!-- tell cocoon to use jfor to convert this to RTF format -->
<?cocoon-format type="xslfo/rtf"?>



<fo:root 
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:jfor="http://www.jfor.org/xmlns/2001/stylesheet"
>


  <fo:layout-master-set>
    <fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm" margin-bottom="0.3cm" margin-top="0.1cm" page-width="21cm" page-height="29.7cm" master-name="first">
      <fo:region-body margin-top="2.0cm"/>
      <fo:region-before extent="0.5cm"/>
      <fo:region-after extent="0.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  
  
    <jfor:stylesheet default="Normal">
        <jfor:style name="Normal" font-size="10pt" font-family="Helvetica"/>
	</jfor:stylesheet>
  
  
  <fo:page-sequence master-name="first">
    <fo:flow flow-name="xsl-region-body">
      <fo:block font-weight="bold">This test demonstrates usage of "keep-together" FO attribute.</fo:block>
      <fo:block font-weight="bold">When a FO element with attribute keep-together="always" is reached a new paragraph is created with the attribute "keep with next paragraph".</fo:block>


<fo:block keep-together="always">    
   
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>This row must be on the same page as next row *start*</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      
       <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="50mm"/>
         <fo:table-column column-width="50mm"/> 
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row,This row must be on the same page as next row</fo:block></fo:table-cell>
              <fo:table-cell >
		              <fo:table>
				        <fo:table-column column-width="50mm"/>
				        <fo:table-body>
				          <fo:table-row >
				            <fo:table-cell ><fo:block>simple nested table</fo:block></fo:table-cell>
				          </fo:table-row>
				        </fo:table-body>
				      </fo:table>
              </fo:table-cell >
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
   
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as previous row*END*</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table >
     
</fo:block> 

<fo:block keep-together="always">    
   
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>This row must be on the same page as next row *start*</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      
       <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="50mm"/>
         <fo:table-column column-width="50mm"/> 
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row,This row must be on the same page as next row</fo:block></fo:table-cell>
              <fo:table-cell >
		              <fo:table>
				        <fo:table-column column-width="50mm"/>
				        <fo:table-body>
				          <fo:table-row >
				            <fo:table-cell ><fo:block>simple nested table</fo:block></fo:table-cell>
				          </fo:table-row>
				        </fo:table-body>
				      </fo:table>
              </fo:table-cell >
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
   
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as previous row*END*</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table >
     
</fo:block> 

<fo:block keep-together="always">    
   
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>This row must be on the same page as next row *start*</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      
       <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="50mm"/>
         <fo:table-column column-width="50mm"/> 
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row,This row must be on the same page as next row</fo:block></fo:table-cell>
              <fo:table-cell >
		              <fo:table>
				        <fo:table-column column-width="50mm"/>
				        <fo:table-body>
				          <fo:table-row >
				            <fo:table-cell ><fo:block>simple nested table</fo:block></fo:table-cell>
				          </fo:table-row>
				        </fo:table-body>
				      </fo:table>
              </fo:table-cell >
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
   
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as previous row*END*</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table >
     
</fo:block> 

<fo:block keep-together="always">    
   
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>This row must be on the same page as next row *start*</fo:block></fo:table-cell>
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      
       <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="50mm"/>
         <fo:table-column column-width="50mm"/> 
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row,This row must be on the same page as next row</fo:block></fo:table-cell>
              <fo:table-cell >
		              <fo:table>
				        <fo:table-column column-width="50mm"/>
				        <fo:table-body>
				          <fo:table-row >
				            <fo:table-cell ><fo:block>simple nested table</fo:block></fo:table-cell>
				          </fo:table-row>
				        </fo:table-body>
				      </fo:table>
              </fo:table-cell >
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
   
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as next row</fo:block></fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      
      <fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as previous row*END*</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table >
     
</fo:block> 

<fo:block keep-together="always">    
  	<fo:table>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="100mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-body>
          <fo:table-row >
            <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
              <fo:table-cell >
              <fo:block>Simple table start</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
        	  <fo:block>Long text for testing what happens if the text is bigger than one page..</fo:block>
              <fo:block>Last row of the table END</fo:block> 
              </fo:table-cell>
             <fo:table-cell ><fo:block>simple text</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
</fo:block> 


 	
  
       
      <fo:block id="terminator">end of test document</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf