I’ve started to work on this. Any feedback about the proposed extension from any interested party will be most welcome.
Thanks, Vincent On 19/09/12 12:22, bugzi...@apache.org wrote: > https://issues.apache.org/bugzilla/show_bug.cgi?id=53902 > > Priority: P2 > Bug ID: 53902 > Summary: Add scope to header table cell > > In XSL-FO, header table cells (fo:table-cell elements that descend from an > fo:table-header/footer object) inherently encompass a column of the table. > This > is due to the way tables are broken down into fo:table-header, fo:table-body > and fo:table-footer. > > There is no XSL-FO construct to say that a table-cell is a header cell > encompassing a /row/ of the table. It can be achieved graphically by e.g., > using a bold font for the first cell of a row, but the structure won't reflect > that. > > This becomes a problem when creating accessible PDF documents, where it is > desirable to store the scope of a header in the logical structure. PDF defines > the standard Scope attribute for that (see Section 10.7.5 of the PDF 1.5 > Reference). > > I propose to add an extension property to fo:table-cell in order to convey > that > information. Along with setting the 'role' property to 'TH', it would become > possible to define a cell as being a header cell with a scope of Row. > Something > like this: > <fo:table-cell role="TH" fox:scope="Row"> > ... > </fo:table-cell> > > The fox:scope property would have an enumerated value of 'Column' (default), > 'Row' or 'Both'. >