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 Long Zhao <LZ...@firstgenetic.net> on 2002/06/26 01:44:40 UTC

why my table can not expand to full page

the FO file is generated from xml and xsl.
I am using FOP to transform it to PDF.
but the program goes in to  a infinite loop, here is the message:

building formatting object tree
setting up fonts
formatting FOs into areas
 [1>] [2] [3] [4>>] [5] [6] [7>>>] [8] [9] [10] [11>>>>] [12] [13] [14] [15] [16>>>>>] [17] [18] [19>>>>] [20] [21] [22] [23] [24>>>>] [25] [26] [27] [28>>>>] [29] [30] [31] [32] [33>>>>>] [34] [35] [36] [37>>>>>] [38] [39] [40>>>] [41] [42] [43] [44] [45>>>>] [46] [47] [48] [49>>>>>] [50] [51] [52] [53>>>] [54] [55>>>...

then, I comment out some table-rows, it works. It seems the table can only take a certain number of rows, or have a fixed height. 

Can anyone figure out what is wrong?

Thanks

Here is the FO file

   <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>

         <fo:simple-page-master master-name="GeneralFormMaster" page-width="8.5in" margin-top="1in" margin-bottom="1in" margin-left="0.75in" margin-right="0.75in">
            <fo:region-body margin-top="1in"/>
            <fo:region-before extent="1in"/>
         </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence master-name="GeneralFormMaster">
         <fo:static-content flow-name="xsl-region-before" xmlns:fo="http://www.w3.org/1999/XSL/Format">
            <fo:table text-indent="1em">
               <fo:table-column column-width="1.5in"/>
               <fo:table-column column-width="4in"/>
               <fo:table-column column-width="1.5in"/>
               <fo:table-body>
                  <fo:table-row>
                     <fo:table-cell>
                        <fo:block font-size="9pt" padding-start="1pt" font-style="italic" font-weight="bold">
											GlaxoWellcome
										</fo:block>
                     </fo:table-cell>
                     <fo:table-cell>
                        <fo:block font-size="9pt" text-align="center">
											CONFIDENTIAL
										</fo:block>
                     </fo:table-cell>
                     <fo:table-cell/>
                  </fo:table-row>
                  <fo:table-row>
                     <fo:table-cell>
                        <fo:block font-size="8pt" padding-start="1pt">
											 
										</fo:block>
                     </fo:table-cell>
                     <fo:table-cell/>
                     <fo:table-cell>
                        <fo:block font-size="8pt">
											 
										</fo:block>
                     </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                     <fo:table-cell>
                        <fo:block font-size="7pt" text-indent="1em" padding-bottom="1pt" text-align="center">
											Protocol code
										</fo:block>
                     </fo:table-cell>
                     <fo:table-cell>
                        <fo:block font-size="8pt" text-align="center">
											 
										</fo:block>
                     </fo:table-cell>
                     <fo:table-cell>
                        <fo:block font-size="7pt" text-indent="2em" padding-bottom="1pt" text-align="center">
											Subject number
										</fo:block>
                     </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                     <fo:table-cell border-style="solid" border-width="0.5pt" text-align="center">
                        <fo:block font-size="12pt" font-weight="bold">PGX400001</fo:block>
                     </fo:table-cell>
                     <fo:table-cell/>
                     <fo:table-cell border-style="solid" border-width="0.5pt" font-weight="bold">
                        <fo:block text-align="center">
                           <fo:block font-size="8pt">PGX40001SITE1PTNT003</fo:block>
                        </fo:block>
                     </fo:table-cell>
                  </fo:table-row>
               </fo:table-body>
            </fo:table>
         </fo:static-content>
         <fo:flow flow-name="xsl-region-body">
            <fo:block text-align="center" space-before.optimum="3pt" space-after.optimum="15pt" font-weight="bold">Drug Dosing History</fo:block>
            <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
               <fo:table border-left-style="solid" border-right-style="solid" border-top-style="solid" border-bottom-style="solid" border-width="0.5pt">
                  <fo:table-column column-width="7in"/>
                  <fo:table-body>
                     <fo:table-row>
                        <fo:table-cell>
                           <fo:block>
                              <fo:table padding-start="10pt">
                                 <fo:table-column column-width="5in"/>
                                 <fo:table-column column-width="1.5in"/>
                                 <fo:table-body>
                                    <fo:table-row>
                                       <fo:table-cell>
                                          <fo:block font-size="9pt">
															 
														</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell>
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
															Yes       No
														</fo:block>
                                       </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row padding-bottom="10pt">
                                       <fo:table-cell>
                                          <fo:block font-size="9pt">Were any concurrent medications taken including OTC medications, vitamins, herbal remedies and supplements within the 12 weeks prior to the onset of SJS/TEN(Case subjects) or within the last 12 weeks (Control subjects)?
If YES, record below:
			</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell>
                                          <fo:table>
                                             <fo:table-column column-width="30pt"/>
                                             <fo:table-column column-width="12pt"/>
                                             <fo:table-column column-width="20pt"/>
                                             <fo:table-column column-width="12pt"/>
                                             <fo:table-body>
                                                <fo:table-row>
                                                   <fo:table-cell/>
                                                   <fo:table-cell border-style="solid" border-width="0.5pt">
                                                      <fo:block font-size="9pt" text-align="center"> </fo:block>
                                                   </fo:table-cell>
                                                   <fo:table-cell/>
                                                   <fo:table-cell border-style="solid" border-width="0.5pt">
                                                      <fo:block font-size="9pt" text-align="center"> </fo:block>
                                                   </fo:table-cell>
                                                </fo:table-row>
                                             </fo:table-body>
                                          </fo:table>
                                       </fo:table-cell>
                                    </fo:table-row>
                                 </fo:table-body>
                              </fo:table>
                           </fo:block>
                           <fo:block>
                              <fo:table border-left-style="solid" border-right-style="solid" border-top-style="solid" border-bottom-style="solid" border-width="0.5pt">
                                 <fo:table-column column-width="1in"/>
                                 <fo:table-column column-width="0.5in"/>
                                 <fo:table-column column-width="0.5in"/>
                                 <fo:table-column column-width="0.5in"/>
                                 <fo:table-column column-width="0.5in"/>
                                 <fo:table-column column-width="0.75in"/>
                                 <fo:table-column column-width="0.75in"/>
                                 <fo:table-column column-width="1in"/>
                                 <fo:table-column column-width="1in"/>
                                 <fo:table-body>

                                    <fo:table-row>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Drug Name (Trade name preferred)</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Dose</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Units</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Frequency</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Route</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Date started (day month year)</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Date stopped (day month year)</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Conditions treated/ indication</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Was drug the suspected cause of the rash?</fo:block>
                                       </fo:table-cell>
                                    </fo:table-row>
                                    
                                    <fo:table-row>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							e.g. ZANTAC
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							150
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							mg
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							BID
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							PO
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							20 JAN 01
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							27 JAN 01
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							Gastric ulcer
						</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell font-weight="bold" border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">
							N
						</fo:block>
                                       </fo:table-cell>
                                    </fo:table-row>

                                    <fo:table-row>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">test3</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">23.33</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">G</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">QOD</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">SC</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">02-APR-98</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">04-FEB-99</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">hhh</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">No</fo:block>
                                       </fo:table-cell>
                                    </fo:table-row>

                                    <fo:table-row>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">hjg</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">4564.78</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">DROP</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">QHS</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">SL</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">05-NOV-01</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">08-JAN-01</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">hgjkg</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">No</fo:block>
                                       </fo:table-cell>
                                    </fo:table-row>
                                    
                                    <fo:table-row>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">test2</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">23.3</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">DROP</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">PRN</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">EAR</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">02-FEB-98</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">25-DEC-99</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">jdjdj</fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border-style="solid" border-width="0.5pt">
                                          <fo:block padding-top="2pt" text-align="center" font-size="9pt">Yes</fo:block>

                                       </fo:table-cell>
                                    </fo:table-row>

                                 </fo:table-body>
                              </fo:table>
                           </fo:block>

                        </fo:table-cell>
                     </fo:table-row>
                  </fo:table-body>
               </fo:table>
            </fo:block>
         </fo:flow>
      </fo:page-sequence>
   </fo:root>



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


Re: why my table can not expand to full page

Posted by Jeremias Maerki <je...@outline.ch>.
This kind of bug has mostly been fixed. You seem to be using an older
version of FOP. See if upgrading to a later version helps.

> the FO file is generated from xml and xsl.
> I am using FOP to transform it to PDF.
> but the program goes in to  a infinite loop, here is the message:
> 
> building formatting object tree
> setting up fonts
> formatting FOs into areas
>  [1>] [2] [3] [4>>] [5] [6] [7>>>] [8] [9] [10] [11>>>>] [12] [13] [14] [15] [16>>>>>] [17] [18] [19>>>>] [20] [21] [22] [23] [24>>>>] [25] [26] [27] [28>>>>] [29] [30] [31] [32] [33>>>>>] [34] [35] [36] [37>>>>>] [38] [39] [40>>>] [41] [42] [43] [44] [45>>>>] [46] [47] [48] [49>>>>>] [50] [51] [52] [53>>>] [54] [55>>>...
> 
> then, I comment out some table-rows, it works. It seems the table can only take a certain number of rows, or have a fixed height. 
> 
> Can anyone figure out what is wrong?

Cheers,
Jeremias Märki


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