Open fred-atherden opened 5 years ago
Tagged as partial support because:
th
instead of td
in the tbody
(i.e. adding a header in the body)br
for example)Note that we should consider also the use of horizontal rule hr
, as demonstrated in Table 3 of this Hindawi article :
Tables within an article.
User Stories
Author
Production staff
Érudit
But what if . . . ?
Considerations
@position
attribute for tables, with two different values - either 'float' (for main tables) or 'anchor' (for inline/unlabelled tables). The idea was to fix inline tables at certain points in the text and to allow main tables to move about. This, however, is mostly a PDF issue the attributes may not be needed for this.@postion
and@orientation
attributes, with@orientation
being required in PDF generation.XML requirements
Tables are captured using
table-wrap
.table-wrap
may or may not have a childlabel
element. Similarly they may or may not have a caption or title.A
table-wrap
may have the attributes@position
and@orientation
, which are generally used for the purposes of PDF generation. Typical values areposition="float"
,position="anchor"
,orientation="portrait"
,orientation="landscape"
.Every
table-wrap
should contain one and only onetable
element. Thistable
element may have athead
or atfoot
, and must have atbody
. Rows are determined by the elementtr
which can containth
andtd
elements.th
must be allowed as a descendant of boththead
andtbody
, whereastd
should be allowed as a descendant oftbody
andtfoot
.The
@colspan
attribute can be used in order to specify if ath
/td
spans more than one column. The@rowspan
attribute can be used in order to specify if ath
/td
spans more than one row. The@align
attribute can be used in order to specifyth
/td
data horizontal alignment. The@valign
attribute can be used in order to specifyth
/td
data vertical alignment.The
break
element should be used in order to add line breaks withinth
/td
elements.Example of PKP content:
The following elements should be allowed as children of
th
/td
:bold
italic
sup
sub
sc
underline
ext-link
xref
break
named-content
preformat
code
inline-graphic
inline-formula
list
p
Érudit example
Érudit capture tables as images:
Published HTML
Taken from: https://github.com/elifesciences/TextureRequirements/issues/46