<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_plain.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="m9000">

  <name>The Basic CNXML (日本語 - Japanese)</name>
  <metadata>
  <md:version>1.1</md:version>
  <md:created>2005/08/24 16:25:38 GMT-5</md:created>
  <md:revised>2005/08/25 11:14:55 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="rars">
      <md:firstname>Ricardo</md:firstname>
      <md:othername>Anthony</md:othername>
      <md:surname>Radaelli-Sanchez</md:surname>
      <md:email>ricky@alumni.rice.edu</md:email>
    </md:author>
      <md:author id="brentmh">
      <md:firstname>Brent</md:firstname>
      <md:othername>Michael</md:othername>
      <md:surname>Hendricks</md:surname>
      <md:email>brentmh@rice.edu</md:email>
    </md:author>
      <md:author id="takaryo">
      <md:firstname>Hironori</md:firstname>
      
      <md:surname>Takaryo</md:surname>
      <md:email>s043105@ishikawa-nct.ac.jp</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="takaryo">
      <md:firstname>Hironori</md:firstname>
      
      <md:surname>Takaryo</md:surname>
      <md:email>s043105@ishikawa-nct.ac.jp</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>CNXML</md:keyword>
    <md:keyword>Connexions</md:keyword>
    <md:keyword>content</md:keyword>
    <md:keyword>document</md:keyword>
    <md:keyword>markup</md:keyword>
    <md:keyword>namespace</md:keyword>
    <md:keyword>tag</md:keyword>
    <md:keyword>XML</md:keyword>
  </md:keywordlist>

  <md:abstract>This is a basic introduction to the CNXML language.  It includes a description on how to begin a CNXML module and also examples of the basic tags needed to start writing in CNXML.</md:abstract>
</metadata>
  
  <content>
    <section id="sec1">
      <name>CNXMLの開始</name>
      <para id="intro">　CNXMLは、教育的なコンテンツを作成しやすいXMLマークアップ言語です。CNXMLの目標は、特定のプレゼンテーションではなく、コンテンツを伝えることです。<link src="http://cnx.rice.edu">Connexionsプロジェクト</link>は、ドキュメントを格納する第一言語として、Connexions Markup Language (CNXML)が使用されています。さぁ、はじめましょう。
</para>
    </section>

    <section id="mark_up">
      <name>CNXMLタグ</name>
      
      <section id="document_section">
	<name>Document</name>
	<para id="document">　すべてのCNXMLドキュメントには、ルートとして<code type="inline">document</code>タグがあります。ドキュメントについての全てを含んでいるメタデータや、documentタグ内で含まれれるコンテンツです。CNXMLドキュメントの基本構造を理解することは重要です。構造は以下の通りです。

	  <list id="org_list">
		<name>Document (root tag)</name>
		<item><term>Name</term> (required)</item>
		<item><term>Metadata Section</term> (optional)</item>
		<item><term>Content Section</term> (required)</item>
	</list>
</para>
	
	<para id="note_para">
	  <note type="warning">ドキュメントを有効にするために必要な追加情報があります。それは<cnxn target="required_stuff">Other
	    Required Stuff</cnxn>というタイトルのセクションの下で説明されています。
	  </note>
	</para>
	
	<para id="document_attributes">
　documentタグには必須の属性が1つあります。
	  <list id="documentlist">
		<item>
			<code type="inline">id</code> - ドキュメントに与えられた固有のID（通常、Connexionsプロジェクトから割り当てられます）	    </item>
	</list>
</para>

	<section id="id_info">
	  <name>ID属性</name>
	  <para id="id">　CNXMLと他のマークアップ言語の主な違いは<code type="inline">id</code>属性要求です。あるタグは<code type="inline">id</code>属性を含めることを必要とします。それらのタグは以下に記載されています。

	    <list id="required_id">
		<item><code type="inline">document</code></item>
		<item><code type="inline">para</code></item>
		<item><code type="inline">equation</code></item>
		<item><code type="inline">rule</code></item>
		<item><code type="inline">definition</code></item>
		<item><code type="inline">exercise</code></item>
		<item><code type="inline">list</code></item>
	</list>
　上記のタグのどれかを使用するなら、id属性が必須なので、固有の<code type="inline">id</code>を必ず与えてください。例を以下に示します。
	  </para>
	  
	  <example id="id_example">
	    <code type="block">
	      <![CDATA[
<para id='uniqueid1'>
  This is an example to illustrate the use of the <code>id</code> attribute.
</para>
<para id='uniqueid2'>
  This paragraph has a different id than the last.
</para>
	     ]]>
	    </code>
	  </example>
	  <note type="note">どんなタグも<code type="inline">id</code>属性を含むことができます。特定のタグに含まれた情報にリンクさせたいなら、これは役に立ちます。
	  </note>
	</section>

	<section id="namespace_declaration">
	  <name>ネームスペース</name>
	  <para id="namespaces">　また<code type="inline">document</code>タグは<term>ネームスペース</term>宣言も含むべきです。<cnxn document="m10159">Namespaces</cnxn>はCNXML内で、タグ名の衝突の心配をすることなく、簡単に他のマークアップ言語を使えるようにしてくれます。CNXMLだけを使用する簡単なドキュメントのために、<code type="inline"/>というCNXMLネームスペース属性を含む必要があります。これは、プリフィックスのないタグがCNXMLで解釈されている間、プリフィックスmがあるタグはMathMLタグとして解釈されることを述べています。</para>

	  <example id="namespace_example">
	    <code type="block">
<![CDATA[<document id='doc1' xmlns='http://cnx.rice.edu/cnxml'>]]>
	    </code>
	  </example>
	</section>
      </section>

      <section id="name">
	<name>Name</name>
	<para id="namep1">　<code type="inline">name</code>タグは親要素の名前を保持するために、多くのCNXMLタグで使用されます。このタグはASCIIテキストの情報のみを含むことができます。
	</para>

	<example id="nameexamp">
	  <code type="block"><![CDATA[<name>Grilling a Good Steak</name>]]></code>
	</example>
	
	<note type="note"><link src="http://cnx.rice.edu/cnxml/0.5/spec">CNXML 0.5
	  specification</link>を見て、タグに名前を付けることができるか見てください。</note>
      </section>

      <section id="content">
	<name>Content</name>
	<para id="adding_content">　今あなたは、idとネームスペース情報でセットアップされた<code type="inline">document</code>タグを持っています。次にあなたのドキュメントに対して行うことは、内容の追加です。内容とはドキュメントの大半を占めるテキストという意味です。

	  <note type="note">厳密に言うと、メタデータは内容に関する情報を優先するべきですが、それは後からやりましょう。</note> 

　内容の全てが<code type="inline">content</code>タグの中に置かれます。すべてのCNXMLドキュメントは1つだけ<code type="inline">content</code>タグを持ちます。ドキュメントの中身は<code type="inline">content</code>タグの中に位置します。




</para>
	<para id="structural_tags_para">
　構造的なタグは、ドキュメントに構造を与えるため、<code type="inline">content</code>タグの中で使用されているタグです。これらのタグについて下で説明します。
	</para>

	<section id="content_tags">
	  <name>Structure Tags</name>
	  <para id="contentp1">　構造タグは<cnxn target="section">section</cnxn>、<cnxn target="para">para</cnxn>、<cnxn target="document">document</cnxn>、<cnxn target="content">content</cnxn>です。

	  </para>
	  <para id="already">　<cnxn target="document">document</cnxn>タグと<cnxn target="content">content</cnxn>タグについては述べました。よって、他のタグに関する短い解説と例を述べましょう。</para>

	  <section id="para">
	    <name>Para</name>
	    <para id="parap1">　<code type="inline">para</code>タグを使用することによって、テキストをドキュメントに挿入することができます。各paraはドキュメント内で固有の<code type="inline">id</code>を持っています。
	    </para>
	    <example id="paraexamp">
	      <code type="block">
<![CDATA[
<para id='intro'>
  I have eaten many steaks in my life and none have been more satisfying
  than the backyard-grill cooked steak.  Maybe this is because of the
  relaxing nature of drinking a beer, being outside, and lounging that
  accompanies the grilling procedure.  Maybe it is because of the aroma
  of the grill and the beef perfectly seasoned to your taste.  Either
  way, this document shows how a good steak can be prepared.
</para>]]>
	      </code>
	    </example>
	  </section>

	  <section id="section">
	    <name>Section</name>
	    <para id="secp1">　教科書はしばしば、より小さなセクションを作成するため、チャプター単位で分割されます。なぜなら、より良い理解と一貫性のため、セグメントテキストにとって必要であるためです。CNXMLは<code type="inline">section</code>タグというものを持っています。</para>
	    <para id="secp2">　<code>section</code>タグは必須の<code type="inline">id</code>属性と、最初の子要素の<cnxn document="m9000" target="name">name</cnxn>タグを持っています。
	      
	    </para>
	    <example id="secexamp">
	      <code type="block">
		<![CDATA[
<section id='ingredsec'>
  <name>Ingredients</name>
    <list> ... </list>
</section>
<section id='marinadesec'>
  <name>Marinade</name>
  <para id='marinate'> ... </para>
    <list id='marinade'> ... </list>
  <para id='tobecontinued'> ... </para>
</section>
<section id='grillingsec'>
  <name>Grilling</name>
  <para id='prepgrill'> ... </para>
  <para id='grilling'> ... </para>
</section>]]>
	      </code>
	      <para id="secexampp1">
		Obviously ellipses would be replaced by appropriate text.
	      </para>
	    </example>
	  </section>  
	</section>

	<section id="Inline_tags">
	  <name>Inline Tags</name>
	  <para id="inline_tags_para">インラインタグは<cnxn target="structural_tags">構造的なタグ</cnxn>の内部に、内容と機能性を埋め込むために使用されます。一般的に使用されるタグを以下に示します。
	  </para>

	  <section id="emphasis">
	    <name>Emphasis</name>
	    <para id="emphp1">　<code type="inline">emphasis</code>タグは、CNXMLドキュメント内のテキストを強調するために使用されます。これは見た目の強調ではなく、<emphasis>意味</emphasis>の強調であることに注意してください。
	    </para>
	    <example id="emphexamp">
	      <code type="block">
<![CDATA[
<para id='intro'>
  I have eaten many steaks in my life and none have been more satisfying
  than the backyard-grill cooked steak.  Maybe this is because of the
  relaxing nature of drinking a beer, being outside, and lounging that
  accompanies the grilling procedure.  Maybe it is because of the aroma
  of the grill and the beef <emphasis>perfectly</emphasis> seasoned to
  your taste.  Either way, this document shows how a good steak can be
  prepared.
</para>]]>
	      </code>
	    </example>
	  </section>

	  <section id="term">
	    <name>Term</name>
	    <para id="termp1">　<code type="inline">term</code>タグは、定義されている単語や熟語をマークするのに使用されます。しかしながら、このタグの使用は<cnxn target="para">para</cnxn>タグか<cnxn target="definition" document="m9007">definition</cnxn>タグの中だけです。<code type="inline">term</code>タグは1つの属性を持ちます。

	      <list id="term_attributes">
	<item><code type="inline">src</code> - 用語のソースか定義が閲覧できるURL。</item>
</list>
</para>
	    <example id="termexamp">
	      <code type="block">
<![CDATA[
<para id='marinade'>
  To ensure the best flavor possible, it is necessary to marinate the
  beef.  A steak <term src='http://marinade.com'>marinates</term> when
  left to sit in a prepared sauce, or <term>marinade</term>, where it
  will absorb the flavors of the ingredients.  Marinating may take as
  little as 15 minutes or as long as 6 hours and should
  <emphasis>always</emphasis> be done in the refrigerator and
  <emphasis>not</emphasis> at room temperature.
</para>]]>
	      </code>
	    </example>
	  </section>
	  
	  <section id="note">
	    <name>Note</name>
	    <para id="notep1">　<code type="inline">note</code>タグは、閲覧者に対する注意を作成します。それは警告、重要ポイントなどです。注意の種類は<code type="inline">type</code>属性で指定されます。
	    </para>
	    <example id="notexamp">
	      <code type="block">
<![CDATA[
<para id='intro'>
  I have eaten many steaks in my life and none have been more
  satisfying than the backyard-grill cooked steak.  Maybe this is
  because of the relaxing nature of drinking a beer, being outside,
  and lounging that accompanies the grilling procedure.  <note
  type='warning'>Excessive drinking or fun may result in overcooked or
  burned steak.</note> Maybe it is because of the aroma of the grill
  and the beef <emphasis>perfectly</emphasis> seasoned to your taste.
  Either way, this document shows how a good steak can be prepared.
</para>]]>
	      </code>
	      <para id="notep2">　上記の例は以下のように表示されます。
	      </para>
	      <para id="notep3">
		I have eaten many steaks in my life and none have been
		more satisfying than the backyard-grill cooked steak.
		Maybe this is because of the relaxing nature of
		drinking a beer, being outside, and lounging that
		accompanies the grilling procedure.  <note type="warning">Excessive drinking or fun may result in
		overcooked or burned steak.</note> Maybe it is because
		of the aroma of the grill and the beef
		<emphasis>perfectly</emphasis> seasoned to your taste.
		Either way, this document shows how a good steak can
		be prepared.
	      </para>

	    </example>
	  </section>
	  
	  <section id="cnln">
	    <name>CNXNとLINK</name>
	    <para id="cnlnp1">　CNXMLの<code type="inline">cnxn</code>タグと<code type="inline">link</code>タグは、他のドキュメントへのリンクのために使用されます。2つのタグの違いは、cnxnタグはConnexionsシステム内の他のドキュメントへのリンクに使用され、linkタグはインターネット上の他のドキュメントへのリンクに使用される点です。
	    </para>
	    <para id="cnxn">
	      　<code type="inline">cnxn</code>タグは4つの属性を持っています。
	      <list id="cnxnlist">
		<item>
			<code type="inline">target</code> - 特定のタグを対象とします。</item>
		<item>
			<code type="inline">document</code> - ドキュメントのIDを対象とします。</item>
		<item>
			<code type="inline">version</code> - ドキュメントの特定のバージョンを対象とします。		</item>
		<item>
			<code type="inline">strength</code> - リンクされた情報が現在のドキュメントに関連している程度を指定します。		</item>
	</list>
　<code type="inline">version</code>属性は任意です。指定されない場合は、ディフォルトで最新版のドキュメントにリンクを行います。そうすると一見version属性は無意味に感じるかもしれませんが、実際は役に立ちます。特定のバージョンを指定すると、そのリンクで指定される内容は今後変化することがありません。最新版にリンクを行っていると、重要な情報が見えなくなる可能性があります。

	    </para>
	    <para id="cnxn2">　<code type="inline">target</code>属性と<code type="inline">document</code>属性は一緒に使用したり、単独で使用したりすることができます。両方を使用するなら、他のドキュメントの特定ののタグへのリンクになります。<code type="inline">document</code>タグだけを使用するなら、他のドキュメントへのリンクになります。<code type="inline">target</code>タグだけを使用するなら、現在のドキュメントの特定のタグへのリンクになります。
	    </para>
	    <para id="cnxn2b">　<code type="inline">strength</code>属性は任意です。リンク先の情報が現在の項目にどのくらい関連性があるのかを、閲覧者に知らせることができます。
	    </para>

	    <example id="cnxn_info">
	      <name>CNXNの例</name>

	      <para id="cnxn_info_para">　cnxnタグはリンク先の記述が必要ありません。例えば、ページ内の図にリンクを行いたいけど、cnxnにどういう名前を付ければいいか分からない場合、以下のようなcnxnを使用することができるでしょう。
		<code type="block">
		<![CDATA[
		<cnxn target='figure1'/>
		  ]]></code>		
　上記の例のようなcnxnタグは、タグの中にテキストが挿入されていないため、テキストを挿入するという方法もあります。システムが適当な代替を見つけることができるかどうかに関係なく、上記の例は<code type="inline">
		<![CDATA[
		  Figure 1
		  ]]></code>か<code type="inline">
		<![CDATA[
		  Reference]]>
	</code>として表現できます。ほとんどの場合、リンク先の説明のため、以下のようにcnxn内でテキストを使用することができます。
		<code type="block">
		<![CDATA[
		<cnxn target='figure1'>Steak Figure</cnxn>
		  ]]></code>
</para>
	    </example>
	    
	    <para id="link">　一方、<code type="inline">link</code>タグはリンク先のURLを示す<code type="inline">src</code>属性だけが必要です。
</para>
	    <example id="cnlnexamp">
	      <code type="block">
		<![CDATA[
<para id='tobecontinued'>
  I'll be adding to this document in <cnxn document='m9006' >The
  Intermediate CNXML</cnxn> which focuses on more advanced CNXML tags.
  For more marinades see the <link src='http://www.2eatcab.com'>Angus
  Beef website</link>.  Finally, a good resource is the <cite>Steak
  Lover's Cookbook -- William Rice; Paperback</cite>.
</para>
		]]>
	      </code>
	      <para id="noteex10a">　上記の例は以下のように表示されます。
	      </para>
	      <para id="noteex10b">
		I'll be adding to this document in <cnxn document="m9006">The Intermediate CNXML</cnxn>
		  which focuses on more advanced CNXML tags.  For more
		  marinades see the <link src="http://www.2eatcab.com">Angus Beef
		  website</link>.  Finally, a good resource is the
		  <cite>Steak Lover's Cookbook -- William Rice;
		  Paperback</cite>.
	      </para>

	    </example>
	  </section>

	  <section id="cite">
	    <name>Cite</name>
	    <para id="citep1">　<code type="inline">cite</code>タグは、ドキュメント内の非電子資料の参照に使用されます。主に作業のタイトルが含まれています。<cnxn target="cnlnexamp"/>を見てください。
	    </para>
	  </section>

	  <section id="quote">
	    <name>Quote</name>
	    <para id="quote_para">　<code type="inline">quote</code>タグは、他のソースから直接引用したテキストを表示するために使用されます。quoteタグは、引用文が<code type="inline">インライン</code>であるか<code type="inline">ブロック</code>であるかを示す<code type="inline">type</code>属性を持っています。
	    </para>
	    <example id="quote_example">
	      <para id="quote_para_example">
		<code type="block"><![CDATA[<para id='steakquote'>
  Everyone has an opinion on how a steak should be cooked. <quote
  type='inline'>"A good steak should be pink in the middle and black
  on the outside."</quote> Although this may sound reasonable many
  remember the words of George Washington: <quote type='block'>"In any
  free country a man should have the ability to purchase a nice rare
  steak."</quote>
</para>]]></code>
		Everyone has an opinion on how a steak should be
		cooked. <quote type="inline">"A good steak should be
		pink in the middle and black on the outside."</quote>
		Although this may sound reasonable many remember the
		words of George Washington: <quote type="block">"In
		any free country a man should have the ability to
		purchase a nice rare steak."</quote>
	      </para>
	    </example>
	  </section>
	  
	  <section id="foreign">
	    <name>Foreign</name>
	    <para id="foreign_para">　<code type="inline">foreign</code>タグは、使用されている外国の単語か熟語を示すために使用されます。
	    </para>
	    <example id="foreign_example">
	      <para id="foreign_para_example">
		<code type="block"><![CDATA[<para id='steakquote2'>
  In many latin american countries steak is called <foreign>carne
  asada</foreign>.
</para>]]></code>
		In many latin american countries steak is called
		  <foreign>carne asada</foreign>.
	      </para>
	    </example>
	  </section>
	</section>
      </section>
    </section>
  
    <section id="pause4">
      <name>ドキュメントの例</name>
      <para id="pause4p1">　上記のタグを全て含んでいるドキュメントの例を以下に示します。</para>
      <code type="block">
	<![CDATA[
      <document id='meat'
	xmlns='http://cnx.rice.edu/cnxml'
	>  
      <name>Grilling a Good Steak</name>

      <content>    

        <section id='intro'>
          <para id='intro'>
	    I have eaten many steaks in my life and none have been more
	    satisfying than the backyard-grill cooked steak.  Maybe this is
	    because of the relaxing nature of drinking a beer, being
	    outside, and lounging that accompanies the grilling procedure.
            <note type='warning'>Excessive drinking or fun may result in
	    overcooked or burned steak.</note> Maybe it is because of the
	    aroma of the grill and the beef <emphasis>perfectly</emphasis>
	    seasoned to your taste.  Either way, this document shows how a
	    good steak can be prepared.
          </para>
        </section>

        <section id='marinate_section'>	      
          <para id='marinate'>
	    To ensure the best flavor possible, it is necessary to marinate
	    the beef.  A steak <term>marinates</term> when left to sit in
            <term>marinade</term>, or prepared sauce, where it will absorb
	    the flavor of the ingredients.  Marinating may take as little as
	    15 minutes or as long as 6 hours and should
            <emphasis>always</emphasis> be done in the refrigerator and
            <emphasis>not</emphasis> at room temperature.
          </para>
        </section>

        <section  id='tobecontinued_section'>	      
          <para id='tobecontinued'>
	    I'll be adding to this document in <cnxn document='m9006'
	    >The Intermediate CNXML</cnxn> which focuses on more
	    advanced CNXML tags.  For more marinades see the <link
	    src='http://www.2eatcab.com'>Angus Beef website</link>.
	    Finally, a good resource is the <cite>Steak Lover's Cookbook --
	    William Rice</cite>.
          </para>
        </section>

      </content>
      </document>
	]]>
      </code>
      <para id="pause4p2">　<link src="http://cnx.rice.edu">Connexions</link>ではこう<cnxn document="m10275">表示</cnxn>されます。
      </para>
    </section>

    <section id="required_stuff">
      <name>他の要求事項</name>
      <para id="doctype">　どんなXMLファイルも最初の行はXML宣言であるべきです（厳密に言うと任意ですが、守るべきです）。XML宣言は<code type="inline">
		
	</code>のようなもので、空白行やスペースが前にあってはいけません。この後、ドキュメントに使用するすべてのDocument Type Definition(DTD)を宣言します（厳密に言うとこれも任意ですが、有効なCNXMLドキュメントにしたいなら、この宣言を含むべきです）。柔軟性のため、ConnexionsはいくつかのDTDを、ドキュメント内で<cnxn document="m10258">CNXMLと他のマークアップ言語を結合</cnxn>できるようにしました。あなたが指定するDTDは、あなたがドキュメント内で使用したい言語によります。CNXMLだけを使用するドキュメントは、以下のようになります。

      </para>
      <example id="cnxmldoctypeexamp">
	<code type="block">
	  <![CDATA[
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" 
	  "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_plain.dtd">
]]>
	</code> 
      </example>
      <para id="mathmldtp1">　CNXMLとMathMLの宣言は以下のようになります。 
      </para>

      <example id="mathmldoctypeexamp">
	<code type="block">
	  <![CDATA[
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" 
	  "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
]]>
	</code> 
      </example>
    </section>
    
    <section id="fin">
      <name>まとめ</name>
      <para id="finp1">　ドキュメントを構成するとき、CNXMLタグに関する質問は、<link src="http://cnx.rice.edu/cnxml/0.5/spec/">the
	CNXML Spec</link>に相談するといいでしょう。より高度な話題に関しては<cnxn document="m9006">The Intermediate CNXML</cnxn>や<cnxn document="m9007">The Advanced CNXML</cnxn>を見てください。
      </para>
    </section>
  </content>
</document>
