DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36403>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36403

           Summary: table with border-collapse="separate" cause
                    IndexOutOfBounds exception
           Product: Fop
           Version: 1.0dev
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: page-master/layout
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: [EMAIL PROTECTED]


The fo below throws an IndexOutOfBounds exception when processed through fop. If
one removes the border-collapse attribute no exception is thrown (the generated
PDF then demonstrates other problems related to backgrounds and padding in cells
but thats a different issue I am currently looking at):

    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
      <fo:layout-master-set>
        <fo:simple-page-master master-name="normal" page-width="5in"
page-height="5in">
          <fo:region-body/>
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="normal" white-space-collapse="true">
        <fo:flow flow-name="xsl-region-body">
          <fo:table border-collapse="separate">
            <fo:table-column column-number="1" />
            <fo:table-column column-number="2" />
            <fo:table-column column-number="3" />
            <fo:table-body>
              <fo:table-row>
                <fo:table-cell>
                  <fo:block>Row 1 Col 1</fo:block>
                </fo:table-cell>
                <fo:table-cell margin="0pt" padding="5pt" 
background-color="blue">
                  <fo:block>Row 1 Col 2</fo:block>
                </fo:table-cell>
                <fo:table-cell margin="0pt" padding="18pt"
background-color="yellow">
                  <fo:block>Row 1 Col 3</fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-body>
          </fo:table>
          <fo:block>Table with all yellow cells having 18pt padding and all blue
cells having 5pt padding.</fo:block>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to