commoncriteria / transforms

Repository for various transforms that are common across CC projects.
The Unlicense
1 stars 2 forks source link

Table titles listed before the table #34

Closed lewyble closed 8 months ago

lewyble commented 3 years ago

Received comment from DISA for MDF to have the table number/title listed before the table.

kgal commented 3 years ago

As far as I know, for the tables that are generated by transforms, the number and title is placed before the table. For all others, it's up to the author. I see that the MDF is manually putting table number/titles after the table body: https://github.com/commoncriteria/mobile-device/blob/5e5e1317e20e05b5979ac94d046ab32cca5d20bd/input/mobile-device.xml#L992)

The preferred way to put in table captions is

<table xmlns="http://www.w3.org/1999/xhtml">
  <caption> Table <cc:ctr ctr-type="Table" id="something">: A Great Title </cc:ctr></caption>
  <tr><th>Column Name 1</th><th>Column Name 2</th>...</tr>
  <tr><td>Data ...
  ...
</table>
robertmclemons commented 8 months ago

They are all before the table now unless the author goes out of his way to screw it up. The Wiki says to put them before.