Hi Vincent

Just having reduced the FO to the table where the problem was, I found there
was an error on my behalf. While every other row had two cells, the header
row where the problem was had only one cell with the empty block. With two
cells as should be, and at least one of them non-empty, a good pdf output is
generated. But when I made both cell blocks empty, there is the same error I
mentioned before - without the "Replacing GU in slot..." lines.

In spite of my error, I note:

- FOP 0.94 should still have accepted two cells each with an empty block,
according to Andreas statement.
- The initial incorrect layout of one cell with an empty block was processed
ok by FOP 0.93. 
- FO validates well in all cases.

I attach the reduced FO, console error response, and the good PDF with just
one empty block.

Thanks for taking interest. 

Regards
Khaled


| -----Original Message-----
| From: Vincent Hennebert [mailto:[EMAIL PROTECTED] 
| Sent: Friday, November 02, 2007 11:59 AM
| To: fop-users@xmlgraphics.apache.org
| Subject: Re: proper fop command line
| 
.............
|
| Sorry that I didn't follow the thread very closely. Do you 
| still have the error messages that appear on your console 
| screenshot ("Replacing GU in slot...")?
| If yes, then this is not related to bug #43766. Please post 
| the FO file (obfuscated, if needed) that causes the error. It 
| will probably help us spot and correct a weird bug.
| 
| Thanks,
| Vincent
| 
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
    <fo:layout-master-set>
        <fo:simple-page-master master-name="FrontPages" page-height="29.7cm" 
page-width="21cm"
            margin-top="2cm" margin-bottom="1cm" margin-left="1.5cm" 
margin-right="2cm">
            <fo:region-body margin-bottom="1.5cm"/>
            <fo:region-after extent="1.5cm"/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name="leftPage" page-height="297mm" 
page-width="210mm"
            margin-top="2cm" margin-bottom="1cm" margin-left="1.5cm" 
margin-right="2cm">
            <fo:region-body margin-bottom="1.5cm"/>
            <fo:region-after extent="1.5cm" region-name="leftPageFooter"/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name="rightPage" page-height="297mm" 
page-width="210mm"
            margin-top="2cm" margin-bottom="1cm" margin-left="2cm" 
margin-right="1.5cm">
            <fo:region-body margin-bottom="1.5cm"/>
            <fo:region-after extent="1.5cm" region-name="rightPageFooter"/>
        </fo:simple-page-master>
        <fo:page-sequence-master master-name="PageSequence">
            <fo:repeatable-page-master-alternatives>
                <fo:conditional-page-master-reference 
master-reference="leftPage" odd-or-even="even"/>
                <fo:conditional-page-master-reference 
master-reference="rightPage" odd-or-even="odd"
                />
            </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="FrontPages">
        <fo:flow flow-name="xsl-region-body">
            <fo:block font-size="16pt" font-family="sans-serif" 
font-weight="bold"
                border-bottom-style="solid" border-bottom-width="2pt" 
space-after="20pt">Table cell
                block content issue</fo:block>
            <fo:block font-size="12pt" font-weight="bold" font-style="italic" 
space-after="8pt"
                text-align="left">[EMAIL PROTECTED]</fo:block>
        </fo:flow>
    </fo:page-sequence>
    <fo:page-sequence master-reference="PageSequence">
        <fo:static-content flow-name="leftPageFooter">
            <fo:block text-align="left" font-size="10pt" 
font-family="sans-serif"
                border-bottom-style="solid" border-bottom-width="1pt" 
padding-bottom="4pt">
                <fo:inline font-weight="bold">
                    <fo:page-number/>
                </fo:inline>
                <fo:inline> - Title</fo:inline>
            </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="rightPageFooter">
            <fo:block text-align="right" font-size="10pt" 
font-family="sans-serif"
                border-bottom-style="solid" border-bottom-width="1pt" 
padding-bottom="4pt">Title -
                    <fo:inline font-weight="bold">
                    <fo:page-number/>
                </fo:inline></fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
            <fo:block border-top-style="solid" border-top-width="1.5pt" 
font-size="12pt"
                font-family="sans-serif" font-weight="bold" space-before="12pt" 
space-after="12pt"
                break-before="page" padding-top="8pt" 
id="N18">Preface</fo:block>
            <fo:block font-size="10pt" font-family="sans-serif" 
text-align="justify"
                space-after="10pt" keep-with-next="always">text</fo:block>
            
            




            <fo:block font-size="11pt" font-family="sans-serif" 
font-weight="bold"
                space-after="11pt" space-before="14pt" 
keep-with-next="always">Table Caption</fo:block>
            <fo:table table-layout="fixed" width="100%">
                <fo:table-header>
                    <fo:table-row>
                        <fo:table-cell>

                            <!-- PROBLEM HERE -->

                            <fo:block font-size="9pt" font-family="sans-serif" 
font-weight="bold"/>
                            <!--<fo:block font-size="9pt" 
font-family="sans-serif"
                                font-weight="bold">H1</fo:block>-->
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block font-size="9pt" font-family="sans-serif" 
font-weight="bold"/>
                            <!--<fo:block font-size="9pt" 
font-family="sans-serif"
                                font-weight="bold">H2</fo:block>-->
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-header>
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="9pt" 
font-family="sans-serif">entry 1</fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block font-size="9pt" 
font-family="sans-serif">entry 2</fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>

        </fo:flow>
    </fo:page-sequence>
</fo:root>
>fop tbl-cell-empty-blk.fo output.pdf
Nov 3, 2007 10:40:04 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
        at org.apache.fop.cli.Main.startFOP(Main.java:166)
        at org.apache.fop.cli.Main.main(Main.java:197)

---------

java.lang.NullPointerException
        at org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPain
ter.java:149)
        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.iterateAndPa
intPositions(TableContentLayoutManager.java:757)
        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(Tab
leContentLayoutManager.java:689)
        at org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayou
tManager.java:334)
        at org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.j
ava:118)
        at org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager
.java:297)
        at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:241)
        at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.jav
a:507)
        at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.jav
a:370)
        at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:262)
        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav
a:345)
        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav
a:263)
        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag
eSequenceLayoutManager.java:144)
        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j
ava:233)
        at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java
:145)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde
r.java:378)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
        at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans
formerIdentityImpl.java:1101)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:484)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
        at org.apache.fop.cli.Main.startFOP(Main.java:166)
        at org.apache.fop.cli.Main.main(Main.java:197)

Attachment: good output.pdf
Description: Adobe PDF document

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to