Summary: This is the final installment of my three part tutorial on the CNXML language. It is currently valid for the most recent release of the 0.3 language. The keywords contain a list of the tags described in this tutorial. Along with the example code in this module there is also an example module that has been growing throughout the tutorial.
codeタグは、パラグラフ内にインラインテキストとしてか、ブロックテキストとして使用されます。どんなタグが含まれるかはCNXML
Specに相談してください。codeタグには2種類の値が入るtype属性があります。
inline (ディフォルト) - インラインテキストの指定block - ブロックテキストの指定<para id='copy'> In a unix terminal the command to copy a file is <code type='inline'>cp original copy</code>. </para>
cp original copy
exerciseタグは作者に対して、彼らのドキュメントに練習問題を追加するタグを提供します。exerciseタグはid属性(必須)とproblemとsolutionの2つの子要素を持ちます。problemタグとsolutionタグは属性を持ちません。
<exercise id='grilltest'>
<problem>
<para id='grilltestp1'>
For food safety, a steak should be cooked to a minimum
temperature of what?
</para>
</problem>
<solution>
<para id='sol1p1'>
160° F or until the juices run clear and the meat is no
longer pink.
</para>
</solution>
</exercise>
tableタグは表の始まりを示します。任意の子要素nameを持ち、1つ以上のtgroupタグを持っています。tableタグはまた多くの属性を持っています。詳しくはCALS Table
Specに相談してください。
<table id='grilltemp' frame='all'>
<name>Steak Cooking Temperatures</name>
<tgroup cols='2' colsep='1' rowsep='1'>
<thead>
<row>
<entry>Temperature (°F)</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry align='center'>140</entry>
<entry align='center'>Rare</entry>
</row>
<row>
<entry align='center'>150</entry>
<entry align='center'>Medium Rare</entry>
</row>
<row>
<entry align='center'>160</entry>
<entry align='center'>Medium</entry>
</row>
<row>
<entry align='center'>165</entry>
<entry align='center'>Medium Well</entry>
</row>
<row>
<entry align='center'>170</entry>
<entry align='center'>Well</entry>
</row>
</tbody>
</tgroup>
</table>
| Temperature (°F) | Description |
|---|---|
| 140 | Rare |
| 150 | Medium Rare |
| 160 | Medium |
| 165 | Medium Well |
| 170 | Well |
Comments, questions, feedback, criticisms?