Re: Teatment of <th> inside HDITA documents
Leif Halvard Silli <[email protected]> Sun, 18 Aug 2024 14:40:16 +0200
| Newsgroups | gmane.editors.xxe.general |
|---|---|
| Message-ID | <[email protected]> |
On 18.08.2024 09:45 Hussein Shafie:
> On 8/17/24 22:34, Leif Halvard Silli wrote:
>>
>> The good news is that, as long as the header cells occurs in the
>> first column, the hack is not necessary. You can instead just make
>> sure that the DITA converter adds <table rowheader="firstcol">
>
> @rowheader reference:
>
> http://docs.oasis-open.org/dita/dita/v1.3/errata02/os/complete/part2-tech-content/langRef/attributes/calsTableAttributes.html#oet-atts__rowheader
>
Thanks! So, when applied to <colspec>, it is possible to define the
cells of any column as a row header cells. Great.
However, it seems like the XXE/DITA Converter combination only — though
currently only stylistically, as you say below — support <table
rowheader="firstcol">.
>> whenever the first column of the HTML table contains <th> elements.
>>
>> Hope this made sense.
>
> Yes, it certainly does.
>
> 1) Currently rowheader='firstcol' seems to be supported but the
> <entry>s found in the first column are translated to <td class="entry
> table-header-style">, not to <th>.
Yes, I notice that now. So it turns out that XXE currently applies the
hack that I proposed ...)I hope you can instead make it output <th> ... !
> ---
> .table-header-style {
> font-weight: bold;
> background-color: #E0E0E0;
> }
> ---
>
> 2) The HDITA support does not detect the case where all the cells
> found in the first column of an XHTML table are <th> and thus does not
> generate a CALS table having rowheader='firstcol'.
>
> To be frank, it is unlikely that we'll ever implement the (legit)
> enhancement that you suggest. We are not sure that Lightweight DITA is
> widely used (if at all) and even if it is, we don't think that HDITA
> is its most popular component.
One reason I started to look at HDITA was because of the seeming
lacking support of DITA tables in XXE. So, while I would of course
encourage you, for HDITA documents, to support conversion of <th> in
first column to <table rowheader="firstcolumn">, how about, to begin
with, improving the DITA table editor of XXE?
Because, currently, for DITA tables, the Toolbar table tools only has
two options for new tables: no headers or a row header. (Also, when
using <table rowheader="firstcol">, there is also no visual rendering,
inside XXE, of the first column being a header cell column.)
How about adding the same 4 options as for DOCBOOK and HTML tables: 1)
no headers, 2) header row, 3) header column as well as 4) both header
row and header column?!
With regards
Leif Halvard Silli
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support