I believe it is a bug, and am getting ready to create one (if not already there). However, in the mean time, you may be able to work around it by eliminating the inline.
In the future, it is best to trim down the test file to the minimum necessary to demonstrate the error. I have done this in the attached. On Wed, Mar 14, 2012 at 1:20 PM, Thomas Morrison < [email protected]> wrote: > Thanks, Glenn, for the quick response. I have been experimenting too, but > am nowhere near an expert on FO. (I have a customer wanting to use XML > publishing.)**** > > ** ** > > The document was created using Stylus Studio using the WYSIWYG editor. I > will retrace my steps to see where I created the fo:inline (which does seem > rather useless).**** > > ** ** > > It is interesting to note, though, that 0.20.5 and RenderX (as delivered > in Stylus Studio) both render this in the ‘expected’ manner.**** > > ** ** > > I will test your work around and get the information to the customer. > Maybe we will just have to add ‘remove fo:inline’ as part of the recipe.** > ** > > ** ** > > Tom**** > > ** ** > > *From:* Glenn Adams [mailto:[email protected]] > *Sent:* Wednesday, March 14, 2012 2:12 PM > *To:* [email protected] > *Cc:* Thomas Morrison > *Subject:* Re: tablePositions empty assertion error in version 1.0**** > > ** ** > > A little experimentation quickly shows:**** > > ** ** > > (1) removing all but one row doesn't change behavior; however**** > > (2) removing the fo:inline parent that contains the table (and moving the > font size property to the parent fo:block) fixes the problem**** > > ** ** > > Did you really intend to nest the table in an inline?**** > > ** ** > > G.**** > > ** ** > > On Wed, Mar 14, 2012 at 11:17 AM, Thomas Morrison < > [email protected]> wrote:**** > > The attached fo document causes the tablePositions assertion, requesting > that the fo be sent. > > The full output of the rendering is: > > Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Font "Symbol,normal,700" not found. Substituting with > "Symbol,normal,400". > Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Font "ZapfDingbats,normal,700" not found. Substituting with > "ZapfDingbats,normal,400". > Mar 14, 2012 11:40:07 AM > org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas > SEVERE: tablePositions empty. Please send your FO file to > [email protected] > > The table-header is rendered at the end of the table. > > --- > > The PDF is renedered the same on 0.95, although the output is different, > not mentioning the two WARNINGs: > Mar 14, 2012 11:51:29 AM > org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas > SEVERE: tablePositions empty. Please send your FO file to > [email protected] > > --- > > The table-header is rendered correctly in 0.20.5 with the following > output: > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > [INFO] FOP 0.20.5 > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > [INFO] building formatting object tree > [INFO] setting up fonts > [INFO] [1] > [WARNING] Sum of fixed column widths 500000 greater than maximum > specified IPD 0 > [INFO] [2] > [INFO] Parsing of document complete, stopping renderer > > I have searched for a possible cause, and would like a workaround if not > a fix. I have so far been unable to determine what aspect of the table > header may be triggering this behavior. > > Tom Morrison > This message has been scanned by MailController - > portal1.mailcontroller.co.uk > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]**** > > ** ** > > This message has been scanned by > MailController<http://portal1.mailcontroller.co.uk/> > .**** > > **** >
<?xml version='1.0'?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="default-page" page-height="11in" page-width="8.5in" margin-left="0.6in" margin-right="0.6in" margin-top="0.79in" margin-bottom="0.79in"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="default-page"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:inline> <fo:table table-layout="fixed"> <fo:table-column column-width="50pt"/> <fo:table-header> <fo:table-row> <fo:table-cell> <fo:block>H</fo:block> </fo:table-cell> </fo:table-row> </fo:table-header> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block>C</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:inline> </fo:block> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
