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

Marra Roberto <[email protected]> Wed, 26 Jun 2002 10:44:04 -0700
Newsgroups gmane.text.xml.jfor.cvs
Message-ID <[email protected]>
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/jfor-cmd
In directory usw-pr-cvs1:/tmp/cvs-serv26535

Added Files:
	tables-keep-with.fo.xml 
Log Message:
initial check-in, jfor-cmd sample

--- NEW FILE: tables-keep-with.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:html="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <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>
  
  
  <fo:page-sequence master-name="first">
    <fo:flow flow-name="xsl-region-body">
      <fo:block font-weight="bold">This test demonstrates usage of jfor-cmd. In this document we use the jfor-cmd "para-keep".</fo:block>
 	  <fo:block font-weight="bold">Currently used into non FO elements, this special attribute is processed by JFOR to execute special features, like "para-keep:on or para-keep:off".</fo:block>  
      <fo:block font-weight="bold">When a jfor-cmd para-keep:on is reached a new paragraph is created with the attribute "keep with next paragraph". The paragraph is closed when Jfor find a jfor-cmd="para-keep:off;"</fo:block>
     
	<block jfor-cmd="para-keep:on;"/>
    
      <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 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>keep-whith-previous</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as previous 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 >
     
		<block jfor-cmd="para-keep:off;"/>


	<block jfor-cmd="para-keep:on;"/>
    
      <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 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>keep-whith-previous</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as previous 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 >
     
		<block jfor-cmd="para-keep:off;"/>
		
	<block jfor-cmd="para-keep:on;"/>
    
      <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 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>
   
   <block jfor-cmd="para-keep:off;"/>
   
   <block jfor-cmd="para-keep:on;"/>
      
      <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>keep-whith-previous</fo:block></fo:table-cell>
              <fo:table-cell ><fo:block>This row must be on the same page as previous 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 >
     
		<block jfor-cmd="para-keep:off;"/>		
     
      
      <fo:block id="terminator">end of test document</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>



-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn