<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML</anchor> の <code class="HTMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">th</anchor></code> 要素および <code class="HTMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">td</anchor></code>
要素の <dfn><code class="HTMLa">axis</code> 属性</dfn>は、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">表</anchor>の中での概念的な分類 (<var>n</var> 次元空間の軸に当たるもの) 
を示すのに使うことができます。</p><figure class="important"><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> 本項は過去の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML</anchor> 仕様に関するものです。現状とは異なることがあります。</p></figure><p>仕様書: <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML 4</anchor><ul><li><code class="HTMLa">axis</code>
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="IW" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="HTML4:&quot;struct/tables.html#adef-axis&quot;">IW:HTML4:&quot;struct/tables.html#adef-axis&quot;</anchor-external></li><li>11.4.2 Categorizing cells
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="IW" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="HTML4:&quot;struct/tables.html#multi-dimension&quot;">IW:HTML4:&quot;struct/tables.html#multi-dimension&quot;</anchor-external></li></ul></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end>
複雑な表では、同じ行・列に異なる情報が込み入ったりします。たとえば旅費の表では行き先, 摘要, 日付などがあるので、完全に2次元に収めることができません。
そこで例えば行の方向に行き先と日付を詰め込むのですが、この際に区別が失われないように <code class="HTMLa">axis</code> で分類します。</p><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form><section><section><h1>属性値</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> この属性の値は、分類名の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">読点</anchor>分離並びです。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SGML</anchor> 的には <code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CDATA</anchor></code> です。</p><p>大文字・小文字は区別されません。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end>
名前の付け方には特に決まりはないようです。
分類の粒度は自由ですし、字種や名前空間も HTML 4 には規定がないみたいです。
(といっても読点は分離子なので使えませんが。)</p><p><code class="HTMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">class</anchor></code> の特殊版といった感じでしょうか。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> この属性は省略可能です。既定値はありません。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end>
HTML 4 DTD の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">注釈</anchor> (参考) には
<q>comma-separated list of related headers</q>
と説明があります。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> [sage])</p><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section><section><h1>レンダリング</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> HTML 4 仕様書にあるレンダリング例:<ul><li>ある分類に属するこまを<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">照会</anchor>できる</li><li>表を目次の形で示す</li></ul></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> HTML 4 仕様書は UA に <code class="HTMLa">axis</code> 情報を扱うことを要求していませんし、
特定の扱い方も推奨したりはしていません。
しかし、 <anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;7</anchor-internal> の簡潔な例のような<q>表っぽくない</q>出力ができる UA
は、その出力方法を<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">スタイル・シート</anchor>などで制御できるべきとされています。</p><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section><section><h1>例</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> 旅行経費報告の例<pre class="HTML">&lt;TABLE border=&quot;1&quot;
          summary=&quot;This table summarizes travel expenses
                   incurred during August trips to
                   San Jose and Seattle&quot;&gt;
&lt;CAPTION&gt;
  Travel Expense Report
&lt;/CAPTION&gt;
&lt;TR&gt;
  &lt;TH&gt;&lt;/TH&gt;
  &lt;TH id=&quot;a2&quot; axis=&quot;expenses&quot;&gt;Meals&lt;/TH&gt;
  &lt;TH id=&quot;a3&quot; axis=&quot;expenses&quot;&gt;Hotels&lt;/TH&gt;
  &lt;TH id=&quot;a4&quot; axis=&quot;expenses&quot;&gt;Transport&lt;/TH&gt;
  &lt;TD&gt;subtotals&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TH id=&quot;a6&quot; axis=&quot;location&quot;&gt;San Jose&lt;/TH&gt;
  &lt;TH&gt;&lt;/TH&gt;
  &lt;TH&gt;&lt;/TH&gt;
  &lt;TH&gt;&lt;/TH&gt;
  &lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TD id=&quot;a7&quot; axis=&quot;date&quot;&gt;25-Aug-97&lt;/TD&gt;
  &lt;TD headers=&quot;a6 a7 a2&quot;&gt;37.74&lt;/TD&gt;
  &lt;TD headers=&quot;a6 a7 a3&quot;&gt;112.00&lt;/TD&gt;
  &lt;TD headers=&quot;a6 a7 a4&quot;&gt;45.00&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TD id=&quot;a8&quot; axis=&quot;date&quot;&gt;26-Aug-97&lt;/TD&gt;
  &lt;TD headers=&quot;a6 a8 a2&quot;&gt;27.28&lt;/TD&gt;
  &lt;TD headers=&quot;a6 a8 a3&quot;&gt;112.00&lt;/TD&gt;
  &lt;TD headers=&quot;a6 a8 a4&quot;&gt;45.00&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TD&gt;subtotals&lt;/TD&gt;
  &lt;TD&gt;65.02&lt;/TD&gt;
  &lt;TD&gt;224.00&lt;/TD&gt;
  &lt;TD&gt;90.00&lt;/TD&gt;
  &lt;TD&gt;379.02&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TH id=&quot;a10&quot; axis=&quot;location&quot;&gt;Seattle&lt;/TH&gt;
  &lt;TH&gt;&lt;/TH&gt;
  &lt;TH&gt;&lt;/TH&gt;
  &lt;TH&gt;&lt;/TH&gt;
  &lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TD id=&quot;a11&quot; axis=&quot;date&quot;&gt;27-Aug-97&lt;/TD&gt;
  &lt;TD headers=&quot;a10 a11 a2&quot;&gt;96.25&lt;/TD&gt;
  &lt;TD headers=&quot;a10 a11 a3&quot;&gt;109.00&lt;/TD&gt;
  &lt;TD headers=&quot;a10 a11 a4&quot;&gt;36.00&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TD id=&quot;a12&quot; axis=&quot;date&quot;&gt;28-Aug-97&lt;/TD&gt;
  &lt;TD headers=&quot;a10 a12 a2&quot;&gt;35.00&lt;/TD&gt;
  &lt;TD headers=&quot;a10 a12 a3&quot;&gt;109.00&lt;/TD&gt;
  &lt;TD headers=&quot;a10 a12 a4&quot;&gt;36.00&lt;/TD&gt;
  &lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TD&gt;subtotals&lt;/TD&gt;
  &lt;TD&gt;131.25&lt;/TD&gt;
  &lt;TD&gt;218.00&lt;/TD&gt;
  &lt;TD&gt;72.00&lt;/TD&gt;
  &lt;TD&gt;421.25&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
  &lt;TH&gt;Totals&lt;/TH&gt;
  &lt;TD&gt;196.27&lt;/TD&gt;
  &lt;TD&gt;442.00&lt;/TD&gt;
  &lt;TD&gt;162.00&lt;/TD&gt;
  &lt;TD&gt;800.27&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;</pre></p><p>(HTML 4 仕様書より)</p><p>(スタイル・シートで背景色指定を補った)
レンダリング例: <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="IW" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="HTML4:&quot;images/table1&quot;">IW:HTML4:&quot;images/table1&quot;</anchor-external></p><p>一部を取り出したレンダリング例:<pre>   Location: San Jose. Date: 25-Aug-1997. Expenses, Meals: 37.74
   Location: San Jose. Date: 26-Aug-1997. Expenses, Meals: 27.28</pre></p><p>もっと簡潔な例:<pre>   San Jose, 25-Aug-1997, Meals: 37.74
   San Jose, 26-Aug-1997, Meals: 27.28</pre></p><p>更に簡潔な例:<pre>   San Jose, Meals, 25-Aug-1997: 37.74
                    26-Aug-1997: 27.28</pre></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end>
<cite xml:lang="it">Screen Reader e tabelle accessibili - <strong>[</strong> LAU <strong>]</strong></cite> (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Laboratorio di accessibilit&amp;#224; e usabilit&amp;#224; del CSI-Piemonte</anchor> 著, <time>2007-03-28 22:46:09 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://lau.csi.it/testare/accessibilita/test_user-agent/tabelle_accessibili/screen_reader.shtml">http://lau.csi.it/testare/accessibilita/test_user-agent/tabelle_accessibili/screen_reader.shtml</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> <cite xml:lang="en">Re: TABLE</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Al Gilman</anchor>著, <time>1997-10-16 21:47:10 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://lists.w3.org/Archives/Public/w3c-wai-hc/1997OctDec/0119.html">https://lists.w3.org/Archives/Public/w3c-wai-hc/1997OctDec/0119.html</anchor-external></p></section></section></body></html>