Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
8.4.4
-
Unknown
-
N/A
-
N/A
-
Description
Hello,
I writed an xwiki application with pages containing some tables without html code (th/td/etc.) but using div and CSS “display: table-cell” instead ie: http://www.senktec.com/2014/01/using-css-display-table-cell-for-columns/
When I PDF export my page, “Final XHTML for export” containing my table-row/cell style:
<div class="Bloc" style="display: block; "><div class="TitreBloc" style="display: block; float: left; background-color: transparent; font-weight: bold; font-style: italic; color: black; ">Contexte</div> <div class="SMQrow" style="display: table-row; "><div class="SMQcolumn1" style="display: table-cell; width: 30em; padding-bottom: 0.3em; padding-right: 1em; ">DG Mxxx * :</div><div class="SMQcolumn2 SMQcolumnNormalWidth" style="display: table-cell; padding-bottom: 0.3em; padding-right: 1em; ">DGAxxx</div></div> <div class="SMQrow" style="display: table-row; "><div class="SMQcolumn1" style="display: table-cell; width: 30em; padding-bottom: 0.3em; padding-right: 1em; ">Contrat xxxxxx</div><div class="SMQcolumn2 SMQcolumnNormalWidth" style="display: table-cell; padding-bottom: 0.3em; padding-right: 1em; ">DGxxxx/div></div>
but on “Intermediary XSL-FO” all table-row/cell missing and use fo:block instead:
<fo:block role="html:div"><fo:block-container role="html:div"
I checked https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/xhtml2fo.xsl but didn’t found some “table-cell” style.
I checked on https://xmlgraphics.apache.org/fop/compliance.html that table-cell is well supported.
Discussion about on https://forum.xwiki.org/t/pdf-export-with-table-composed-with-table-cell/506/2
and one example: http://playground.xwiki.org/xwiki/bin/view/Sandbox/TableToPDFExport/
ty