[jats-list] Re: Row headers in OASIS table model

Subject: [jats-list] Re: Row headers in OASIS table model
From: "Julie Blair julie.blair@xxxxxxxxxxx" <jats-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Sep 2022 22:03:27 -0000
While we don't use the CALS table model for JATS, we use it in our proprietary
book DTD. We had to make adjustments to the table model within the DTD to
ensure accessibility of tables. For your below situation we added scope
attributes that would translate well into XHTML.

Associate table data with its headers
This step is required for more complex tables. For example, tables that
contain row and column headers, tables with multiple column header rows,
and/or entries that span multiple rows or columns.
@scope (<entry scope="">)
The scope attribute should be used on table entries (<entry>) that function as
headers to specify the range of entries they encompass. This could be either a
row, a column, a row group, or a column group.

  *   Add an @scope and assign a value of one of: row|col|rowgroup|colgroup
For example, please see the below encoding for a complex table using @scope:

<table rowheader="firstcol">
    <tgroup cols="3">
        <colspec colname="col1"/>
        <colspec colname="col2"/>
        <colspec colname="col3"/>
        <thead>
            <row>
                <entry morerows="1"/>
                <entry namest="col2" nameend="col3"
scope="colgroup">points</entry>
            </row>
            <row>
                <entry scope="col">expected</entry>
                <entry scope="col">actual</entry>
            </row>
        </thead>
        <tbody>
            <row>
                <entry scope="row">Mark</entry>
                <entry>10,000</entry>
                <entry>11,123.45</entry>
            </row>
            <row>
                <entry scope="row">Peter</entry>
                <entry>9,000</entry>
                <entry>11,012.34</entry>
            </row>
            <row>
                <entry scope="row">Cindy</entry>
                <entry>10,000</entry>
                <entry>10,987.64</entry>
            </row>
        </tbody>
    </tgroup>
</table>

I'm not sure if you are able to modify your in-use DTD/schema - but this
approach could help. It is essentially using the expanded CALS table model for
DocBook 5.1:
https://lists.oasis-open.org/archives/dita/201303/msg00085/docbook5.1b8_table
s_rev.pdf

Julie Blair
Global Content Systems Manager
SAGE Publishing
2455 Teller Road
Thousand Oaks, CA 91320
USA

www.sagepublishing.com<http://www.sagepublishing.com/>

From: Michael Boudreau mboudreau@xxxxxxxxxxxx <jats-list-

We use the OASIS table model in our JATS 1.2 XML for in-house editing with
Arbortext Editor. Is there a way to tag a table row so that the first cell in
the row is designated as a row header, so that this


<row>
    <entry>Row header</entry>
    <entry>Some value</entry>
    <entry>Another value</entry>
</row>

can be converted to this

<tr>
    <th scope="row">Row header</th>
    <td>Some value</td>
    <td>Another value</td>
</tr>


JATS-List info and
archive<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
mulberrytech.com%2FJATS%2FJATS-List%2F&data=05%7C01%7Cjulie.blair%40sagepub.c
om%7C52498fe2767f43f52eef08da9698a18b%7C866b3abd7515461abdb412b4a1857f04%7C0%
7C0%7C637987879556015289%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoi
V2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fO0zLbCEKsgMIJCX
%2F69jVIjd6KQMhAvm2e41Jp7xmB0%3D&reserved=0>
EasyUnsubscribe<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2
F%2Flists.mulberrytech.com%2Funsub%2Fjats-list%2F243121&data=05%7C01%7Cjulie.
blair%40sagepub.com%7C52498fe2767f43f52eef08da9698a18b%7C866b3abd7515461abdb4
12b4a1857f04%7C0%7C0%7C637987879556015289%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4
wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata
=AizJ0Ydqd4cVPdIC%2BIVDudhbqBAZWw%2FRK5IabnPAwTc%3D&reserved=0> (by email<>)

Current Thread