W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

help needed

From: Long Zhao <LZhao@firstgenetic.net>
Date: Fri, 21 Jun 2002 17:16:39 -0400 (EDT)
Message-ID: <C616F739CD6C7449B0A9CC1D456388A81E727D@MAIL-02VS.atlarge.net>
To: "FOP Developer Mailing List" <fop-dev@xml.apache.org>, "FOP User Mailing List" <fop-user@xml.apache.org>, <www-xsl-fo@w3.org>




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 any one figure out where 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>
Received on Monday, 24 June 2002 06:26:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT