Re: Teatment of <th> inside HDITA documents

Hussein Shafie <[email protected]> Tue, 20 Aug 2024 09:36:20 +0200
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
On 8/18/24 14:40, Leif Halvard Silli wrote:
> 
> 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?!

It's not that simple. It seems that the DocBook CALS table templates 
having the first column being a header do NOT make use of the rowheader 
attribute (https://tdg.docbook.org/tdg/5.2/cals.table).

Example:
---
   <elementTemplate name="head_column">
     <informaltable xmlns="http://docbook.org/ns/docbook">
       <tgroup cols="2">
         <colspec align="center"/>
         <tbody>
           <row>
             <entry></entry><entry></entry>
           </row>
           <row>
             <entry></entry><entry></entry>
           </row>
         </tbody>
       </tgroup>
     </informaltable>
   </elementTemplate>
---

In fact the rowheader attribute is currently ignored by XXE.

We'll *try* to improve this but it's too late to make it for XXE v10.9 
which should be released in the very near future.

Meanwhile, please remember that you can create your own custom table 
template "by hand", give it a name and save it for later use¹ using 
"Options|Customize Configuration|Save Selected Element As Template". See 
https://www.xmlmind.com/xmleditor/_distrib/doc/help/save_element_as_template_dialog.html

---
¹Use the Edit tool, not the table editor found in the tool bar, to 
insert your custom table template.




--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support