Based on: The Advanced CNXML by Ricardo Radaelli-Sanchez
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.
This module contains Connexions documentation which is out-of-date. The contents of this module are provided here for historical purposes only and should not be considered accurate for the current version of the Connexions website. The current (English-language) version of this module can be located at http://cnx.org/content/m9007/latest/. If you have any additional questions or cannot find the answer to your question, please contact techsupport@cnx.org and we will be happy to assist in any way we can.
If you would like to assist Connexions by helping us update this module with an appropriate translation from the current English version, please contact us at cnx@cnx.org as we would appreciate your help with improving our support for non-English-speaking users.
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>
In a unix terminal the command to copy a file is cp original copy
exerciseタグは作者に対して、彼らのドキュメントに練習問題を追加するタグを提供します。exerciseタグはid属性(必須)とproblemとsolutionの2つの子要素を持ちます。problemタグとsolutionタグは属性を持ちません。
多項選択式などの複雑な答えを作成するため、QML(Questions Markup Language)はproblemタグやsolutionタグのところで使用されるでしょう。詳しくはQMLを見てください。
<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>
For food safety, a steak should be cooked to a minimum temperature of what?
160° F or until the juices run clear and the meat is no longer pink
CNXMLはCNXMLドキュメントにテーブルを含めるために、Industry StandardのCALS Table Modelを使用しています。以下に示すのは、CALSタグ、それらの属性、そして子要素の簡単な解説です。より詳しい情報については、CALS Table Specに相談してください。
tableタグは表の始まりを示します。任意の子要素nameを持ち、1つ以上のtgroupタグを持っています。tableタグはまた多くの属性を持っています。詳しくはCALS Table
Specに相談してください。
tgroupタグはtableの始まりを示します。列数を表す必須の属性colsを持ちます。その子属性のタグは、0か1以上のcolspecかspanspecと、0か1以上のtheadかtfoot、そして1つのtbodyタグです。
The colspec tag is an empty tag
that specificies the column of a table or entrytbl. The names and numbers
specified as attributes are used for referencing by other
tags.
The spanspec tag is an empty tag that
identifies a horizontal span of columns and associated
attributes that can subsequently be referenced by its
spanname for repeated use in entry or entrytbl in different rows.
entrytblタグはentryの代理を行いますが、tgroupのtbodyの一行に収まります。
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.
entryタグはrow内の入力を特定します。entryタグはASCIIを含んでおり、0か1以上のcite、term、cnxn、link、code、emphasisもしくはmediaを含んでいます。
少し複雑に聞こえるかもしれませんが、Example 3を見ることで表について理解できると思います。より詳しい情報はCALS Table SpecかCNXML 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 |
これでCNXMLチュートリアルは終わりです。2つの役立つリソースはThe CNXML Language Specとthe example documentです。