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 tag is used to insert example computer
output/input as either inline text within a paragraph or as a
block of text. To see which tags it may contain or be inside,
consult the CNXML
Spec. The code tag has a type
attribute with two possible values.
inline (default) - used to specify code that
is inline.block - used to specify code that should be
in a separate block of text.<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 tag provides a tag for authors to
add practice problems into their documents. The
exercise tag has a required id
attribute and has two child tags, problem and
solution. The problem tag and the
solution tag have no attributes.
<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 tag marks the beginning of a table.
It has an optional first child of name and must contain one or more
tgroup tags. The
table tag also has many attributes, to find out
more information consult the CALS Table
Spec.
entrytbl tag takes the place of an entry, but fits into a single row of tbody in a tgroup. The content model is the
same as that of a tgroup except
that tfoot is ommitted and
entrytbl is self-excluding. Its children tags
are zero, one, or more colspec
or spanspec, zero or one
thead or tfoot, and one tbody tag.
<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?