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: Using CSS "display: table-cell" for columns - Senktec
Unfortunaly PDF export doesn’t export table correctly.
I checked on Apache(tm) FOP - Compliance that table-cell is well supported. It is.
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 xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/xhtml2fo.xsl at master · xwiki/xwiki-platform · GitHub but didn’t found some “table-cell” style.
To resume my question: how to display table in PDF export when on my xwiki page my table is formating with div/table-cll/row in CSS?
Ty
Pascal B