In Dita4Publishers, a row is generated to avoid this problem. I actually prefered not having to check for the "special" row created when the problem occured :-). I decided that tables written only with header rows should be converted into a DITA table written only with "normal" rows.
In simple2dita.xsl (Dita4Publishers), in the template matching "rsiwp:table", I completed the condition generating the thead element: it should be generated if there is a rsiwp:th element (a heading row) AND if there is a rsiwp:tr element (a normal row).
But we then have to write in the body of the Dita table what is to be found in the header if there is no body row (the test in yellow).
(You'll maybe notice that I got rid of the "xsl:choose". I do not need it as the "xsl:apply-templates select="rsiwp:tr"" only has an effect if there is a row ("rsiwp:tr" element).)
Aucun commentaire:
Enregistrer un commentaire