Closed ronaldtse closed 6 years ago
There are only four styles of table supported in RFC XML v2. Because I tried to stick close to Asciidoc's native treatment of style, I did not support RFC XML v2's "headers" or Asciidoc's "rows", but neither of them give you what you want.
+---+----+----+
| | 0 | 1 |
+---+----+----+
| 0 | D6 | 90 |
+---+----+----+
| 0 | D6 | 90 |
+---+----+----+
All
+---+----+----+
| | 0 | 1 |
+---+----+----+
| 0 | D6 | 90 |
| 0 | D6 | 90 |
+---+----+----+
Cols = Full
0 1
0 D6 90
0 D6 90
None
0 1
- -- --
0 D6 90
0 D6 90
Headers
I will make Asciidoc's "rows" map to XML RFC's "headers", though that's strictly speaking misleading. As you can see, xml2rfc does not give special treatment to header cells at the start of rows; in fact, RFC XML v2 does not have a notion of header cells in the table body at all (though v3 does).
That's true. I suppose this usage is outside of the typical functionality with RFC XML. Using "rows" to map to "headers" is a welcome change though -- at least there is a mapping!
So I'm trying to re-create this table using our gem. Right now it's just ASCII-art.
(actually you can see it here: https://tools.ietf.org/html/draft-ribose-cfrg-sm4-02#section-6.2.3)
This table is slightly different because it has a column header and also a row header. This is my attempt to create it in asciidoc:
Unfortunately this gives me the below without any header lines.
Without the "grid" option I get this:
@opoudjis any idea how to make it work? Thanks!