title: How to keep content together in XSL FO tables
body: <p>I have XSL-FO with region-before, region-after, and region-body which has a table having 6 columns. The second column has 3 lines of data (name, address, city/state/zip). We render this into PDF. </p>
  
  <p>If I simply apply my data, I will get a row at the end of the page, where the 2nd column has 1 line of text on the current page, and 2 lines end up on the next page.</p>
  
  <p>If I apply keep-together="always" (or keep-together.within-column="always") my table starts on the 2nd page.</p>
  
  <p>How can I get my data to page-break correctly? If I have not provided enough information, please comment and I will try to provide it.</p>
  
  <p>Edit: XSL-FO attached; Added Stylesheet and XML; Added the rest of the XSLT</p>
  
  <p>XML Data:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;AS400_ELVPLOC00Collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;COL_FILL_MODE&gt;0&lt;/COL_FILL_MODE&gt;
    &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
    &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
    &lt;SLMR_ERROR_LIST /&gt;
    &lt;ObjList&gt;
      &lt;AS400_ELVPLOC00&gt;
        &lt;ID&gt;0&lt;/ID&gt;
    &lt;DOC_LINK_ID&gt;0&lt;/DOC_LINK_ID&gt;
    &lt;EMAIL_LINK_ID&gt;0&lt;/EMAIL_LINK_ID&gt;
    &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
    &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
    &lt;OBJ_TYPE&gt;AS400_ELVPLOC00&lt;/OBJ_TYPE&gt;
    &lt;CRTD_DT&gt;0001-01-01T00:00:00&lt;/CRTD_DT&gt;
    &lt;MODFD_DT&gt;0001-01-01T00:00:00&lt;/MODFD_DT&gt;
    &lt;SLMR_ERROR_LIST /&gt;
    &lt;ELBLDGCD&gt;11966&lt;/ELBLDGCD&gt;
    &lt;ELBLDGCD_DISPLAY&gt;11966&lt;/ELBLDGCD_DISPLAY&gt;
    &lt;ELBLDGNM&gt;TEST COMPANY&lt;/ELBLDGNM&gt;
    &lt;ELLSTNUM&gt;123&lt;/ELLSTNUM&gt;
    &lt;ELLDIR&gt;&lt;/ELLDIR&gt;
    &lt;ELLRDNUM&gt;0&lt;/ELLRDNUM&gt;
    &lt;ELLSTNM1&gt;Nowhere&lt;/ELLSTNM1&gt;
    &lt;ELLTYP1&gt;St&lt;/ELLTYP1&gt;
    &lt;ELLCITY&gt;HARRISBURG&lt;/ELLCITY&gt;
    &lt;ELLSTATE&gt;PA&lt;/ELLSTATE&gt;
    &lt;ELLZIPCD&gt;17111&lt;/ELLZIPCD&gt;
    &lt;ELLZIPCD_DISPLAY&gt;18970&lt;/ELLZIPCD_DISPLAY&gt;
    &lt;ELLZIPSX&gt;0&lt;/ELLZIPSX&gt;
    &lt;ELLZIPSX_DISPLAY /&gt;
    &lt;LOC_STREET_DISPLAY&gt;123 Nowhere St&lt;/LOC_STREET_DISPLAY&gt;
    &lt;LOC_STREET_DISPLAY2&gt; &lt;/LOC_STREET_DISPLAY2&gt;
    &lt;LOC_DISPLAY_NONUM&gt;123 Nowhere St&amp;lt;br /&amp;gt;HARRISBURG PA 17111&lt;/LOC_DISPLAY_NONUM&gt;
    &lt;ELLCNTY&gt;42017&lt;/ELLCNTY&gt;
    &lt;ELLCNTY_NAME&gt;Bucks&lt;/ELLCNTY_NAME&gt;
    &lt;ELLCURRYY&gt;0&lt;/ELLCURRYY&gt;
    &lt;ELLCURRMM&gt;0&lt;/ELLCURRMM&gt;
    &lt;ELLCURRDD&gt;0&lt;/ELLCURRDD&gt;
    &lt;ELLCurrStatus_DT&gt;0001-01-01T00:00:00&lt;/ELLCurrStatus_DT&gt;
    &lt;FEE_CO_ID&gt;0&lt;/FEE_CO_ID&gt;
    &lt;INSPTR_ID&gt;0&lt;/INSPTR_ID&gt;
    &lt;ELLUPDTYY&gt;0&lt;/ELLUPDTYY&gt;
    &lt;ELLUPDTMM&gt;0&lt;/ELLUPDTMM&gt;
    &lt;ELLUPDTDD&gt;0&lt;/ELLUPDTDD&gt;
    &lt;ELLLastUpdate_DT&gt;0001-01-01T00:00:00&lt;/ELLLastUpdate_DT&gt;
    &lt;ELLPASTYY&gt;0&lt;/ELLPASTYY&gt;
    &lt;ELLPASTMM&gt;0&lt;/ELLPASTMM&gt;
    &lt;ELLPASTDD&gt;0&lt;/ELLPASTDD&gt;
    &lt;ELEPastStat_DT&gt;0001-01-01T00:00:00&lt;/ELEPastStat_DT&gt;
    &lt;AS400_ELVPEQP_COL&gt;
      &lt;COL_FILL_MODE&gt;0&lt;/COL_FILL_MODE&gt;
      &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
      &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
      &lt;SLMR_ERROR_LIST /&gt;
      &lt;ObjList&gt;
        &lt;AS400_ELVPEQP00&gt;
          &lt;ID&gt;114224&lt;/ID&gt;
          &lt;DOC_LINK_ID&gt;0&lt;/DOC_LINK_ID&gt;
          &lt;EMAIL_LINK_ID&gt;0&lt;/EMAIL_LINK_ID&gt;
          &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
          &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
          &lt;OBJ_TYPE&gt;AS400_ELVPEQP00&lt;/OBJ_TYPE&gt;
          &lt;CRTD_DT&gt;0001-01-01T00:00:00&lt;/CRTD_DT&gt;
          &lt;MODFD_DT&gt;0001-01-01T00:00:00&lt;/MODFD_DT&gt;
          &lt;SLMR_ERROR_LIST /&gt;
          &lt;ELBLDGCD&gt;11966&lt;/ELBLDGCD&gt;
          &lt;ELEEQNO&gt;1&lt;/ELEEQNO&gt;
          &lt;ELEEQNO_DISPLAY&gt;001&lt;/ELEEQNO_DISPLAY&gt;
          &lt;ELEDTINY&gt;1947&lt;/ELEDTINY&gt;
          &lt;ELEDTINM&gt;10&lt;/ELEDTINM&gt;
          &lt;ELEDTIND&gt;2&lt;/ELEDTIND&gt;
          &lt;ELEInitInsp_DT&gt;1947-10-02T00:00:00&lt;/ELEInitInsp_DT&gt;
          &lt;ELEIRSLT&gt;P&lt;/ELEIRSLT&gt;
          &lt;ELEICDTY&gt;0&lt;/ELEICDTY&gt;
          &lt;ELEICDTM&gt;0&lt;/ELEICDTM&gt;
          &lt;ELEICDTD&gt;0&lt;/ELEICDTD&gt;
          &lt;ELEClear_DT&gt;1900-01-01T00:00:00&lt;/ELEClear_DT&gt;
          &lt;ELPERMTNO&gt;194703851&lt;/ELPERMTNO&gt;
          &lt;ELEPERMID&gt;N&lt;/ELEPERMID&gt;
          &lt;ELEDTISY&gt;0&lt;/ELEDTISY&gt;
          &lt;ELEDTISM&gt;0&lt;/ELEDTISM&gt;
          &lt;ELEDTISD&gt;0&lt;/ELEDTISD&gt;
          &lt;ELEPermitIssued_DT&gt;1900-01-01T00:00:00&lt;/ELEPermitIssued_DT&gt;
          &lt;ELELSEAL /&gt;
          &lt;ELEYCEXP&gt;0&lt;/ELEYCEXP&gt;
          &lt;ELEMCEXP&gt;0&lt;/ELEMCEXP&gt;
          &lt;ELECEXP_DT&gt;0001-01-01T00:00:00&lt;/ELECEXP_DT&gt;
          &lt;ELEYCISS&gt;0&lt;/ELEYCISS&gt;
          &lt;ELEMCISS&gt;0&lt;/ELEMCISS&gt;
          &lt;ELOFLNUM&gt;11966&lt;/ELOFLNUM&gt;
          &lt;ELERPNUM&gt;11966&lt;/ELERPNUM&gt;
          &lt;ELETYPELV&gt;F&lt;/ELETYPELV&gt;
          &lt;ELEINSPD&gt;2&lt;/ELEINSPD&gt;
          &lt;ELEDTWINY&gt;0&lt;/ELEDTWINY&gt;
          &lt;ELEDTWINM&gt;0&lt;/ELEDTWINM&gt;
          &lt;ELEDTWIND&gt;0&lt;/ELEDTWIND&gt;
          &lt;ELEMajRepair_DT&gt;1900-01-01T00:00:00&lt;/ELEMajRepair_DT&gt;
          &lt;ELEWCDTY&gt;0&lt;/ELEWCDTY&gt;
          &lt;ELEWCDTM&gt;0&lt;/ELEWCDTM&gt;
          &lt;ELEWCDTD&gt;0&lt;/ELEWCDTD&gt;
          &lt;ELEMajRepairClear_DT&gt;1900-01-01T00:00:00&lt;/ELEMajRepairClear_DT&gt;
          &lt;ELEDTLINY&gt;2008&lt;/ELEDTLINY&gt;
          &lt;ELEDTLINM&gt;2&lt;/ELEDTLINM&gt;
          &lt;ELEDTLIND&gt;21&lt;/ELEDTLIND&gt;
          &lt;ELELastInsp_DT&gt;2008-02-21T00:00:00&lt;/ELELastInsp_DT&gt;
          &lt;ELELAST_INSP_ID&gt;1369887&lt;/ELELAST_INSP_ID&gt;
          &lt;ELEUPDTYY&gt;0&lt;/ELEUPDTYY&gt;
          &lt;ELEUPDTMM&gt;0&lt;/ELEUPDTMM&gt;
          &lt;ELEUPDTDD&gt;0&lt;/ELEUPDTDD&gt;
          &lt;ELELastUpdate_DT&gt;0001-01-01T00:00:00&lt;/ELELastUpdate_DT&gt;
          &lt;ELELocId&gt;0&lt;/ELELocId&gt;
          &lt;ELEBldgOpwnId&gt;0&lt;/ELEBldgOpwnId&gt;
          &lt;ELERespOwnId&gt;0&lt;/ELERespOwnId&gt;
          &lt;ELEPassID&gt;0&lt;/ELEPassID&gt;
          &lt;ELESkiID&gt;0&lt;/ELESkiID&gt;
          &lt;ELEWclID&gt;0&lt;/ELEWclID&gt;
          &lt;ELEECOCD_ID&gt;0&lt;/ELEECOCD_ID&gt;
          &lt;ELEEORIG_ID&gt;0&lt;/ELEEORIG_ID&gt;
          &lt;FIRST_INSP_ID&gt;0&lt;/FIRST_INSP_ID&gt;
          &lt;LAST_MAJ_REP_INSP_ID&gt;0&lt;/LAST_MAJ_REP_INSP_ID&gt;
        &lt;/AS400_ELVPEQP00&gt;
        &lt;AS400_ELVPEQP00&gt;
          &lt;ID&gt;114225&lt;/ID&gt;
          &lt;DOC_LINK_ID&gt;0&lt;/DOC_LINK_ID&gt;
          &lt;EMAIL_LINK_ID&gt;0&lt;/EMAIL_LINK_ID&gt;
          &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
          &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
          &lt;OBJ_TYPE&gt;AS400_ELVPEQP00&lt;/OBJ_TYPE&gt;
          &lt;CRTD_DT&gt;0001-01-01T00:00:00&lt;/CRTD_DT&gt;
          &lt;MODFD_DT&gt;0001-01-01T00:00:00&lt;/MODFD_DT&gt;
          &lt;SLMR_ERROR_LIST /&gt;
          &lt;ELBLDGCD&gt;11966&lt;/ELBLDGCD&gt;
          &lt;ELEEQNO&gt;2&lt;/ELEEQNO&gt;
          &lt;ELEEQNO_DISPLAY&gt;002&lt;/ELEEQNO_DISPLAY&gt;
          &lt;ELEDTINY&gt;1947&lt;/ELEDTINY&gt;
          &lt;ELEDTINM&gt;10&lt;/ELEDTINM&gt;
          &lt;ELEDTIND&gt;2&lt;/ELEDTIND&gt;
          &lt;ELEInitInsp_DT&gt;1947-10-02T00:00:00&lt;/ELEInitInsp_DT&gt;
          &lt;ELEIRSLT&gt;P&lt;/ELEIRSLT&gt;
          &lt;ELEICDTY&gt;0&lt;/ELEICDTY&gt;
          &lt;ELEICDTM&gt;0&lt;/ELEICDTM&gt;
          &lt;ELEICDTD&gt;0&lt;/ELEICDTD&gt;
          &lt;ELEClear_DT&gt;1900-01-01T00:00:00&lt;/ELEClear_DT&gt;
          &lt;ELPERMTNO&gt;194703851&lt;/ELPERMTNO&gt;
          &lt;ELEPERMID&gt;N&lt;/ELEPERMID&gt;
          &lt;ELEDTISY&gt;0&lt;/ELEDTISY&gt;
          &lt;ELEDTISM&gt;0&lt;/ELEDTISM&gt;
          &lt;ELEDTISD&gt;0&lt;/ELEDTISD&gt;
          &lt;ELEPermitIssued_DT&gt;1900-01-01T00:00:00&lt;/ELEPermitIssued_DT&gt;
          &lt;ELELSEAL /&gt;
          &lt;ELEYCEXP&gt;0&lt;/ELEYCEXP&gt;
          &lt;ELEMCEXP&gt;0&lt;/ELEMCEXP&gt;
          &lt;ELECEXP_DT&gt;0001-01-01T00:00:00&lt;/ELECEXP_DT&gt;
          &lt;ELEYCISS&gt;0&lt;/ELEYCISS&gt;
          &lt;ELEMCISS&gt;0&lt;/ELEMCISS&gt;
          &lt;ELOFLNUM&gt;11966&lt;/ELOFLNUM&gt;
          &lt;ELERPNUM&gt;11966&lt;/ELERPNUM&gt;
          &lt;ELETYPELV&gt;F&lt;/ELETYPELV&gt;
          &lt;ELEINSPD&gt;2&lt;/ELEINSPD&gt;
          &lt;ELEDTWINY&gt;0&lt;/ELEDTWINY&gt;
          &lt;ELEDTWINM&gt;0&lt;/ELEDTWINM&gt;
          &lt;ELEDTWIND&gt;0&lt;/ELEDTWIND&gt;
          &lt;ELEMajRepair_DT&gt;1900-01-01T00:00:00&lt;/ELEMajRepair_DT&gt;
          &lt;ELEWCDTY&gt;0&lt;/ELEWCDTY&gt;
          &lt;ELEWCDTM&gt;0&lt;/ELEWCDTM&gt;
          &lt;ELEWCDTD&gt;0&lt;/ELEWCDTD&gt;
          &lt;ELEMajRepairClear_DT&gt;1900-01-01T00:00:00&lt;/ELEMajRepairClear_DT&gt;
          &lt;ELEDTLINY&gt;2008&lt;/ELEDTLINY&gt;
          &lt;ELEDTLINM&gt;2&lt;/ELEDTLINM&gt;
          &lt;ELEDTLIND&gt;21&lt;/ELEDTLIND&gt;
          &lt;ELELastInsp_DT&gt;2008-02-21T00:00:00&lt;/ELELastInsp_DT&gt;
          &lt;ELELAST_INSP_ID&gt;1369887&lt;/ELELAST_INSP_ID&gt;
          &lt;ELEUPDTYY&gt;0&lt;/ELEUPDTYY&gt;
          &lt;ELEUPDTMM&gt;0&lt;/ELEUPDTMM&gt;
          &lt;ELEUPDTDD&gt;0&lt;/ELEUPDTDD&gt;
          &lt;ELELastUpdate_DT&gt;0001-01-01T00:00:00&lt;/ELELastUpdate_DT&gt;
          &lt;ELELocId&gt;0&lt;/ELELocId&gt;
          &lt;ELEBldgOpwnId&gt;0&lt;/ELEBldgOpwnId&gt;
          &lt;ELERespOwnId&gt;0&lt;/ELERespOwnId&gt;
          &lt;ELEPassID&gt;0&lt;/ELEPassID&gt;
          &lt;ELESkiID&gt;0&lt;/ELESkiID&gt;
          &lt;ELEWclID&gt;0&lt;/ELEWclID&gt;
          &lt;ELEECOCD_ID&gt;0&lt;/ELEECOCD_ID&gt;
          &lt;ELEEORIG_ID&gt;0&lt;/ELEEORIG_ID&gt;
          &lt;FIRST_INSP_ID&gt;0&lt;/FIRST_INSP_ID&gt;
          &lt;LAST_MAJ_REP_INSP_ID&gt;0&lt;/LAST_MAJ_REP_INSP_ID&gt;
        &lt;/AS400_ELVPEQP00&gt;
      &lt;/ObjList&gt;
      &lt;Sort_Expression /&gt;
      &lt;Sort_Expression_List /&gt;
      &lt;Sort_Direction&gt;Asc&lt;/Sort_Direction&gt;
      &lt;SEARCH_ELBLDGCD&gt;0&lt;/SEARCH_ELBLDGCD&gt;
      &lt;SEARCH_ELEEQNO&gt;0&lt;/SEARCH_ELEEQNO&gt;
      &lt;SEARCH_ELEFLNUM&gt;0&lt;/SEARCH_ELEFLNUM&gt;
      &lt;SEARCH_ELERPNUM&gt;0&lt;/SEARCH_ELERPNUM&gt;
      &lt;SEARCH_ELPERMTNO&gt;0&lt;/SEARCH_ELPERMTNO&gt;
      &lt;SEARCH_ELPERMTNO_LIST /&gt;
      &lt;SEARCH_INSPTRID&gt;0&lt;/SEARCH_INSPTRID&gt;
      &lt;SEARCH_INSPNDT_START&gt;12:00:00 AM&lt;/SEARCH_INSPNDT_START&gt;
      &lt;SEARCH_INSPNDT_END&gt;12:00:00 AM&lt;/SEARCH_INSPNDT_END&gt;
    &lt;/AS400_ELVPEQP_COL&gt;
    &lt;LastEqpNum&gt;0&lt;/LastEqpNum&gt;
    &lt;NumOfEqp&gt;0&lt;/NumOfEqp&gt;
    &lt;PRVNC&gt;0&lt;/PRVNC&gt;
    &lt;CTRY&gt;0&lt;/CTRY&gt;
    &lt;DIVN&gt;ELV&lt;/DIVN&gt;
    &lt;FILE_NUMBER&gt;0&lt;/FILE_NUMBER&gt;
    &lt;OWNER_ID&gt;0&lt;/OWNER_ID&gt;
    &lt;Original_ObjType&gt;AS400_ELVPLOC00&lt;/Original_ObjType&gt;
    &lt;ASGD_WRKLD_INSPTR_ID&gt;0&lt;/ASGD_WRKLD_INSPTR_ID&gt;
  &lt;/AS400_ELVPLOC00&gt;
  &lt;AS400_ELVPLOC00&gt;
    &lt;ID&gt;0&lt;/ID&gt;
    &lt;DOC_LINK_ID&gt;0&lt;/DOC_LINK_ID&gt;
    &lt;EMAIL_LINK_ID&gt;0&lt;/EMAIL_LINK_ID&gt;
    &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
    &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
    &lt;OBJ_TYPE&gt;AS400_ELVPLOC00&lt;/OBJ_TYPE&gt;
    &lt;CRTD_DT&gt;0001-01-01T00:00:00&lt;/CRTD_DT&gt;
    &lt;MODFD_DT&gt;0001-01-01T00:00:00&lt;/MODFD_DT&gt;
    &lt;SLMR_ERROR_LIST /&gt;
    &lt;ELBLDGCD&gt;26778&lt;/ELBLDGCD&gt;
    &lt;ELBLDGCD_DISPLAY&gt;26778&lt;/ELBLDGCD_DISPLAY&gt;
    &lt;ELBLDGNM&gt;ANOTHER COMPANY&lt;/ELBLDGNM&gt;
    &lt;ELLSTNUM /&gt;
    &lt;ELLDIR&gt;E&lt;/ELLDIR&gt;
    &lt;ELLRDNUM&gt;0&lt;/ELLRDNUM&gt;
    &lt;ELLSTNM1&gt;POST&lt;/ELLSTNM1&gt;
    &lt;ELLTYP1&gt;RD&lt;/ELLTYP1&gt;
    &lt;ELLCITY&gt;HARRISBURG&lt;/ELLCITY&gt;
    &lt;ELLSTATE&gt;PA&lt;/ELLSTATE&gt;
    &lt;ELLZIPCD&gt;17111&lt;/ELLZIPCD&gt;
    &lt;ELLZIPCD_DISPLAY&gt;19067&lt;/ELLZIPCD_DISPLAY&gt;
    &lt;ELLZIPSX&gt;0&lt;/ELLZIPSX&gt;
    &lt;ELLZIPSX_DISPLAY /&gt;
    &lt;LOC_STREET_DISPLAY&gt;E POST RD&lt;/LOC_STREET_DISPLAY&gt;
    &lt;LOC_STREET_DISPLAY2&gt; &lt;/LOC_STREET_DISPLAY2&gt;
    &lt;LOC_DISPLAY_NONUM&gt;ANOTHER COMPANY&amp;lt;br /&amp;gt;E POST RD&amp;lt;br /&amp;gt;HARRISBURG PA 17111&lt;/LOC_DISPLAY_NONUM&gt;
    &lt;ELLCNTY&gt;42017&lt;/ELLCNTY&gt;
    &lt;ELLCNTY_NAME&gt;Bucks&lt;/ELLCNTY_NAME&gt;
    &lt;ELLCURRYY&gt;0&lt;/ELLCURRYY&gt;
    &lt;ELLCURRMM&gt;0&lt;/ELLCURRMM&gt;
    &lt;ELLCURRDD&gt;0&lt;/ELLCURRDD&gt;
    &lt;ELLCurrStatus_DT&gt;0001-01-01T00:00:00&lt;/ELLCurrStatus_DT&gt;
    &lt;FEE_CO_ID&gt;0&lt;/FEE_CO_ID&gt;
    &lt;INSPTR_ID&gt;0&lt;/INSPTR_ID&gt;
    &lt;ELLUPDTYY&gt;0&lt;/ELLUPDTYY&gt;
    &lt;ELLUPDTMM&gt;0&lt;/ELLUPDTMM&gt;
    &lt;ELLUPDTDD&gt;0&lt;/ELLUPDTDD&gt;
    &lt;ELLLastUpdate_DT&gt;0001-01-01T00:00:00&lt;/ELLLastUpdate_DT&gt;
    &lt;ELLPASTYY&gt;0&lt;/ELLPASTYY&gt;
    &lt;ELLPASTMM&gt;0&lt;/ELLPASTMM&gt;
    &lt;ELLPASTDD&gt;0&lt;/ELLPASTDD&gt;
    &lt;ELEPastStat_DT&gt;0001-01-01T00:00:00&lt;/ELEPastStat_DT&gt;
    &lt;AS400_ELVPEQP_COL&gt;
      &lt;COL_FILL_MODE&gt;0&lt;/COL_FILL_MODE&gt;
      &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
      &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
      &lt;SLMR_ERROR_LIST /&gt;
      &lt;ObjList&gt;
        &lt;AS400_ELVPEQP00&gt;
          &lt;ID&gt;77581&lt;/ID&gt;
          &lt;DOC_LINK_ID&gt;0&lt;/DOC_LINK_ID&gt;
          &lt;EMAIL_LINK_ID&gt;0&lt;/EMAIL_LINK_ID&gt;
          &lt;IS_CHANGED&gt;false&lt;/IS_CHANGED&gt;
          &lt;IS_CHILDREN&gt;true&lt;/IS_CHILDREN&gt;
          &lt;OBJ_TYPE&gt;AS400_ELVPEQP00&lt;/OBJ_TYPE&gt;
          &lt;CRTD_DT&gt;0001-01-01T00:00:00&lt;/CRTD_DT&gt;
          &lt;MODFD_DT&gt;0001-01-01T00:00:00&lt;/MODFD_DT&gt;
          &lt;SLMR_ERROR_LIST /&gt;
          &lt;ELBLDGCD&gt;26778&lt;/ELBLDGCD&gt;
          &lt;ELEEQNO&gt;7&lt;/ELEEQNO&gt;
          &lt;ELEEQNO_DISPLAY&gt;007&lt;/ELEEQNO_DISPLAY&gt;
          &lt;ELEDTINY&gt;0&lt;/ELEDTINY&gt;
          &lt;ELEDTINM&gt;0&lt;/ELEDTINM&gt;
          &lt;ELEDTIND&gt;0&lt;/ELEDTIND&gt;
          &lt;ELEInitInsp_DT&gt;1900-01-01T00:00:00&lt;/ELEInitInsp_DT&gt;
          &lt;ELEIRSLT /&gt;
          &lt;ELEICDTY&gt;0&lt;/ELEICDTY&gt;
          &lt;ELEICDTM&gt;0&lt;/ELEICDTM&gt;
          &lt;ELEICDTD&gt;0&lt;/ELEICDTD&gt;
          &lt;ELEClear_DT&gt;1900-01-01T00:00:00&lt;/ELEClear_DT&gt;
          &lt;ELPERMTNO&gt;0&lt;/ELPERMTNO&gt;
          &lt;ELEPERMID&gt;M0&lt;/ELEPERMID&gt;
          &lt;ELEDTISY&gt;0&lt;/ELEDTISY&gt;
          &lt;ELEDTISM&gt;0&lt;/ELEDTISM&gt;
          &lt;ELEDTISD&gt;0&lt;/ELEDTISD&gt;
          &lt;ELEPermitIssued_DT&gt;1900-01-01T00:00:00&lt;/ELEPermitIssued_DT&gt;
          &lt;ELELSEAL /&gt;
          &lt;ELEYCEXP&gt;0&lt;/ELEYCEXP&gt;
          &lt;ELEMCEXP&gt;0&lt;/ELEMCEXP&gt;
          &lt;ELECEXP_DT&gt;0001-01-01T00:00:00&lt;/ELECEXP_DT&gt;
              &lt;ELEYCISS&gt;0&lt;/ELEYCISS&gt;
              &lt;ELEMCISS&gt;0&lt;/ELEMCISS&gt;
              &lt;ELOFLNUM&gt;26778&lt;/ELOFLNUM&gt;
              &lt;ELERPNUM&gt;26778&lt;/ELERPNUM&gt;
              &lt;ELETYPELV&gt;F&lt;/ELETYPELV&gt;
              &lt;ELEINSPD&gt;2&lt;/ELEINSPD&gt;
              &lt;ELEDTWINY&gt;0&lt;/ELEDTWINY&gt;
              &lt;ELEDTWINM&gt;0&lt;/ELEDTWINM&gt;
              &lt;ELEDTWIND&gt;0&lt;/ELEDTWIND&gt;
              &lt;ELEMajRepair_DT&gt;1900-01-01T00:00:00&lt;/ELEMajRepair_DT&gt;
              &lt;ELEWCDTY&gt;0&lt;/ELEWCDTY&gt;
              &lt;ELEWCDTM&gt;0&lt;/ELEWCDTM&gt;
              &lt;ELEWCDTD&gt;0&lt;/ELEWCDTD&gt;
              &lt;ELEMajRepairClear_DT&gt;1900-01-01T00:00:00&lt;/ELEMajRepairClear_DT&gt;
              &lt;ELEDTLINY&gt;2010&lt;/ELEDTLINY&gt;
              &lt;ELEDTLINM&gt;6&lt;/ELEDTLINM&gt;
              &lt;ELEDTLIND&gt;3&lt;/ELEDTLIND&gt;
              &lt;ELELastInsp_DT&gt;2010-06-03T00:00:00&lt;/ELELastInsp_DT&gt;
              &lt;ELELAST_INSP_ID&gt;1547374&lt;/ELELAST_INSP_ID&gt;
              &lt;ELEUPDTYY&gt;0&lt;/ELEUPDTYY&gt;
              &lt;ELEUPDTMM&gt;0&lt;/ELEUPDTMM&gt;
              &lt;ELEUPDTDD&gt;0&lt;/ELEUPDTDD&gt;
              &lt;ELELastUpdate_DT&gt;0001-01-01T00:00:00&lt;/ELELastUpdate_DT&gt;
              &lt;ELELocId&gt;0&lt;/ELELocId&gt;
              &lt;ELEBldgOpwnId&gt;0&lt;/ELEBldgOpwnId&gt;
              &lt;ELERespOwnId&gt;0&lt;/ELERespOwnId&gt;
              &lt;ELEPassID&gt;0&lt;/ELEPassID&gt;
              &lt;ELESkiID&gt;0&lt;/ELESkiID&gt;
              &lt;ELEWclID&gt;0&lt;/ELEWclID&gt;
              &lt;ELEECOCD_ID&gt;0&lt;/ELEECOCD_ID&gt;
              &lt;ELEEORIG_ID&gt;0&lt;/ELEEORIG_ID&gt;
              &lt;FIRST_INSP_ID&gt;0&lt;/FIRST_INSP_ID&gt;
              &lt;LAST_MAJ_REP_INSP_ID&gt;0&lt;/LAST_MAJ_REP_INSP_ID&gt;
            &lt;/AS400_ELVPEQP00&gt;
          &lt;/ObjList&gt;
          &lt;Sort_Expression /&gt;
          &lt;Sort_Expression_List /&gt;
          &lt;Sort_Direction&gt;Asc&lt;/Sort_Direction&gt;
          &lt;SEARCH_ELBLDGCD&gt;0&lt;/SEARCH_ELBLDGCD&gt;
          &lt;SEARCH_ELEEQNO&gt;0&lt;/SEARCH_ELEEQNO&gt;
          &lt;SEARCH_ELEFLNUM&gt;0&lt;/SEARCH_ELEFLNUM&gt;
          &lt;SEARCH_ELERPNUM&gt;0&lt;/SEARCH_ELERPNUM&gt;
          &lt;SEARCH_ELPERMTNO&gt;0&lt;/SEARCH_ELPERMTNO&gt;
          &lt;SEARCH_ELPERMTNO_LIST /&gt;
          &lt;SEARCH_INSPTRID&gt;0&lt;/SEARCH_INSPTRID&gt;
          &lt;SEARCH_INSPNDT_START&gt;12:00:00 AM&lt;/SEARCH_INSPNDT_START&gt;
          &lt;SEARCH_INSPNDT_END&gt;12:00:00 AM&lt;/SEARCH_INSPNDT_END&gt;
        &lt;/AS400_ELVPEQP_COL&gt;
        &lt;LastEqpNum&gt;0&lt;/LastEqpNum&gt;
        &lt;NumOfEqp&gt;0&lt;/NumOfEqp&gt;
        &lt;PRVNC&gt;0&lt;/PRVNC&gt;
        &lt;CTRY&gt;0&lt;/CTRY&gt;
        &lt;DIVN&gt;ELV&lt;/DIVN&gt;
        &lt;FILE_NUMBER&gt;0&lt;/FILE_NUMBER&gt;
        &lt;OWNER_ID&gt;0&lt;/OWNER_ID&gt;
        &lt;Original_ObjType&gt;AS400_ELVPLOC00&lt;/Original_ObjType&gt;
        &lt;ASGD_WRKLD_INSPTR_ID&gt;0&lt;/ASGD_WRKLD_INSPTR_ID&gt;
      &lt;/AS400_ELVPLOC00&gt;
    &lt;/ObjList&gt;
    &lt;Sort_Expression /&gt;
    &lt;Sort_Expression_List /&gt;
    &lt;Sort_Direction&gt;Asc&lt;/Sort_Direction&gt;
    &lt;SEARCH_ELBLDGCD&gt;0&lt;/SEARCH_ELBLDGCD&gt;
    &lt;SEARCH_ELBLDGNM /&gt;
    &lt;SEARCH_ELLCITY /&gt;
    &lt;SEARCH_ELOFLNUM&gt;0&lt;/SEARCH_ELOFLNUM&gt;
    &lt;SEARCH_ELLSTNAME /&gt;
    &lt;SEARCH_Counties&gt;42017,42075&lt;/SEARCH_Counties&gt;
    &lt;SEARCH_FromDate&gt;2011-01-01T00:00:00&lt;/SEARCH_FromDate&gt;
    &lt;SEARCH_ToDate&gt;2014-06-30T00:00:00&lt;/SEARCH_ToDate&gt;
  &lt;/AS400_ELVPLOC00Collection&gt;
  </code></pre>
  
  <p>Print_Stylesheet.txt (attribute-sets)</p>
  
  <pre><code>  &lt;xsl:attribute-set name="table"&gt;
     &lt;xsl:attribute name="font-family"&gt;Arial&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;10pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="table-layout"&gt;fixed&lt;/xsl:attribute&gt; 
      &lt;xsl:attribute name="space-before"&gt;10pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="space-after"&gt;10pt&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:attribute-set name="table.data.th" &gt;
      &lt;xsl:attribute name="border-style"&gt;solid&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-color"&gt;black&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-width"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-start"&gt;0.3em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-end"&gt;0.2em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-before"&gt;2pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-after"&gt;2pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="text-align"&gt;center&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;9pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-weight"&gt;bold&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:attribute-set name="table.data.td_title" &gt;
      &lt;xsl:attribute name="border-style"&gt;solid&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-color"&gt;black&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-width"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-start"&gt;0.3em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-end"&gt;0.2em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-before"&gt;2pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-after"&gt;2pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-weight"&gt;bold&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:attribute-set name="table.data.td_data" &gt;
      &lt;xsl:attribute name="border-style"&gt;solid&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-color"&gt;black&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-width"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;9pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-start"&gt;0.5em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-end"&gt;0.3em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-before"&gt;2pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-after"&gt;2pt&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:attribute-set name="table_PLAN_APRVL"&gt;
      &lt;xsl:attribute name="font-family"&gt;Arial&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;9pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="line-height"&gt;14pt&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:attribute-set name="table.data.td_titleCell"&gt;
      &lt;xsl:attribute name="line-height"&gt;10pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;9pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-start"&gt;0.3em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-end"&gt;0.2em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-before"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-after"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-left-style"&gt;solid&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-left-width"&gt;thin&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-right-style"&gt;solid&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-right-width"&gt;thin&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-top-style"&gt;solid&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-top-width"&gt;thin&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:attribute-set name="table.data.td_innerTitleCell"&gt;
      &lt;xsl:attribute name="vertical-align"&gt;sub&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="text-align"&gt;right&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;9pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-end"&gt;0.1em&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-before"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-after"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-weight"&gt;bold&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:attribute-set name="table.data.td_innerCell"&gt;
      &lt;xsl:attribute name="vertical-align"&gt;sub&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;9pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-before"&gt;1pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-after"&gt;1pt&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
     &lt;xsl:attribute-set name="OCR.Data"&gt;
      &lt;xsl:attribute name="font-family"&gt;OCR A Extended&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;13pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-weight"&gt;normal&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-color"&gt;black&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  </code></pre>
  
  <p>Section from XSLT:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"&gt;
    &lt;xsl:output method="xml" indent="yes"/&gt;
    &lt;!--Style Sheet--&gt;
    &lt;!--Helper Tools--&gt;
    &lt;xsl:variable name="ind" select="0" /&gt;
    &lt;xsl:attribute-set name="table.cell"&gt;
      &lt;xsl:attribute name="border-style"&gt;solid&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-color"&gt;black&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="border-width"&gt;normal&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-size"&gt;7pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-family"&gt;Times New Roman&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="text-align"&gt;center&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="font-weight"&gt;bold&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-before"&gt;2pt&lt;/xsl:attribute&gt;
      &lt;xsl:attribute name="padding-after"&gt;2pt&lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  
    &lt;xsl:key name="county" match="ObjList/AS400_ELVPLOC00" use="ELLCNTY_NAME" /&gt;
  
    &lt;xsl:template match="AS400_ELVPLOC00Collection"&gt;
      &lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
        &lt;fo:layout-master-set&gt;
          &lt;fo:simple-page-master master-name="simple"
                    page-height="11in"
                    page-width="8.5in"
                    margin-top="0.125in"
                    margin-bottom="0.125in"
                    margin-left="0.325in"
                    margin-right="0.325in"&gt;
  
            &lt;fo:region-body margin-top="1.125in"
                        margin-bottom="0.75in"
                        margin-left="0in"
                        margin-right="1in"
              /&gt;
            &lt;fo:region-before region-name="xsl-region-before" extent="1in" /&gt;
            &lt;fo:region-after region-name="xsl-region-after" extent="0.0in" /&gt;
          &lt;/fo:simple-page-master&gt;
        &lt;/fo:layout-master-set&gt;
        &lt;fo:page-sequence master-reference="simple"&gt;
          &lt;!-- Page Header--&gt;
          &lt;fo:static-content flow-name="xsl-region-before"&gt;
          &lt;/fo:static-content&gt;
  
          &lt;!--Footer--&gt;
          &lt;fo:static-content flow-name="xsl-region-after" &gt;
          &lt;/fo:static-content&gt;
  
          &lt;fo:flow flow-name="xsl-region-body"&gt;
            &lt;xsl:for-each select="ObjList/AS400_ELVPLOC00[generate-id(.)=generate-id(key('county',ELLCNTY_NAME)[1])]"&gt;
  
          &lt;fo:flow flow-name="xsl-region-body"&gt;
        &lt;xsl:for-each select="ObjList/AS400_ELVPLOC00[generate-id(.)=generate-id(key('county',ELLCNTY_NAME)[1])]"&gt;
  
          &lt;fo:table xsl:use-attribute-sets="table" space-after="0pt" break-after="page"&gt;
            &lt;fo:table-column column-number="1" column-width="0.75in" /&gt;
            &lt;!-- LOC NO --&gt;
            &lt;fo:table-column column-number="2" column-width="2.85in" /&gt;
            &lt;!-- LOCATION --&gt;
            &lt;fo:table-column column-number="3" column-width="1.5in" /&gt;
            &lt;!-- EQP/TYPE --&gt;
            &lt;fo:table-column column-number="4" column-width="1.25in" /&gt;
            &lt;!-- INSP DATE --&gt;
            &lt;fo:table-column column-number="5" column-width="0.125in" /&gt;
            &lt;!-- ? --&gt;
            &lt;fo:table-column column-number="6" column-width="2.0in" /&gt;
            &lt;!-- HISTORY --&gt;
            &lt;fo:table-header&gt;
              &lt;!-- Grid Header --&gt;
              &lt;fo:table-row&gt;
                &lt;fo:table-cell number-columns-spanned="2"&gt;
                  &lt;fo:block&gt;
                    &lt;xsl:text&gt;FOR &lt;/xsl:text&gt;
                    &lt;xsl:value-of select="ELLCNTY_NAME" /&gt;
                    &lt;xsl:text&gt; COUNTY&lt;/xsl:text&gt;
                  &lt;/fo:block&gt;
                &lt;/fo:table-cell&gt;
                &lt;fo:table-cell number-columns-spanned="4"&gt;
  
                &lt;/fo:table-cell&gt;
              &lt;/fo:table-row&gt;
              &lt;fo:table-row&gt;
                &lt;fo:table-cell&gt;
                  &lt;fo:block padding-after="10pt"&gt;
                    LOC NO
                  &lt;/fo:block&gt;
                &lt;/fo:table-cell&gt;
                &lt;fo:table-cell text-align="left"&gt;
                  &lt;fo:block&gt;
                    LOCATION
                  &lt;/fo:block&gt;
                &lt;/fo:table-cell&gt;
                &lt;fo:table-cell text-align="left"&gt;
                  &lt;fo:block&gt;
                    EQP/TYPE
                  &lt;/fo:block&gt;
                &lt;/fo:table-cell&gt;
                &lt;fo:table-cell text-align="left"&gt;
                  &lt;fo:block&gt;
                    INSP DATE
                  &lt;/fo:block&gt;
                &lt;/fo:table-cell&gt;
                &lt;fo:table-cell text-align="left"&gt;
                  &lt;fo:block&gt;
  
                  &lt;/fo:block&gt;
                &lt;/fo:table-cell&gt;
                &lt;fo:table-cell text-align="left"&gt;
                  &lt;fo:block&gt;
                    HISTORY
                  &lt;/fo:block&gt;
                &lt;/fo:table-cell&gt;
              &lt;/fo:table-row&gt;
            &lt;/fo:table-header&gt;
  
            &lt;!-- Table Grid --&gt;
            &lt;fo:table-body&gt;
              &lt;xsl:for-each select="key('county',ELLCNTY_NAME)"&gt;
                &lt;xsl:sort select="ELBLDGCD_DISPLAY" /&gt;
                &lt;fo:table-row padding-after="4pt"&gt;
                  &lt;fo:table-cell&gt;
                    &lt;fo:block&gt;
                      &lt;xsl:value-of select="ELBLDGCD_DISPLAY" /&gt;
                    &lt;/fo:block&gt;
                  &lt;/fo:table-cell&gt;
                  &lt;fo:table-cell padding-after="5pt"&gt;
                    &lt;fo:block&gt;
                      &lt;fo:block&gt;
                        &lt;xsl:value-of select="ELBLDGNM"/&gt;
                      &lt;/fo:block&gt;
                      &lt;fo:block&gt;
                        &lt;xsl:value-of select="LOC_STREET_DISPLAY"/&gt;
                      &lt;/fo:block&gt;
                      &lt;fo:block&gt;
                        &lt;xsl:value-of select="ELLCITY"/&gt;
                        &lt;xsl:text&gt;, &lt;/xsl:text&gt;
                        &lt;xsl:value-of select="ELLSTATE"/&gt;
                        &lt;xsl:text&gt; &lt;/xsl:text&gt;
                        &lt;xsl:value-of select="ELLZIPCD"/&gt;
                      &lt;/fo:block&gt;
                    &lt;/fo:block&gt;
                  &lt;/fo:table-cell&gt;
                  &lt;fo:table-cell padding-after="5pt"&gt;
                    &lt;fo:block&gt;
                      &lt;xsl:text&gt;...&lt;/xsl:text&gt;
                    &lt;/fo:block&gt;
                  &lt;/fo:table-cell&gt;
                  &lt;fo:table-cell padding-after="5pt"&gt;
                    &lt;fo:block&gt;
                      &lt;xsl:text&gt;...&lt;/xsl:text&gt;
                    &lt;/fo:block&gt;
                  &lt;/fo:table-cell&gt;
                  &lt;fo:table-cell padding-after="5pt"&gt;
                    &lt;fo:block&gt;
                      &lt;xsl:text&gt;...&lt;/xsl:text&gt;
                    &lt;/fo:block&gt;
                  &lt;/fo:table-cell&gt;
                  &lt;fo:table-cell padding-after="5pt"&gt;
                    &lt;fo:block&gt;
                      &lt;xsl:text&gt;...&lt;/xsl:text&gt;
                    &lt;/fo:block&gt;
                  &lt;/fo:table-cell&gt;
                &lt;/fo:table-row&gt;
              &lt;/xsl:for-each&gt;
  
            &lt;/fo:table-body&gt;
          &lt;/fo:table&gt;
  
        &lt;/xsl:for-each&gt;
      &lt;/fo:flow&gt;
    &lt;/fo:page-sequence&gt;
      &lt;/fo:root&gt;
  
    &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>