<?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="m9006">

  <name>The Intermediate CNXML (日本語 - Japanese)</name>

  <metadata>
  <md:version>2.20</md:version>
  <md:created>2005/08/25 11:29:43.543 GMT-5</md:created>
  <md:revised>2005/08/25 11:33:20.496 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="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>caption</md:keyword>
    <md:keyword>CNXML</md:keyword>
    <md:keyword>codeblock</md:keyword>
    <md:keyword>codeline</md:keyword>
    <md:keyword>equation</md:keyword>
    <md:keyword>figure</md:keyword>
    <md:keyword>media</md:keyword>
    <md:keyword>section</md:keyword>
    <md:keyword>subfigure</md:keyword>
  </md:keywordlist>

  <md:abstract>This is the second installment of the CNXML language tutorials.  It is designed to give a more comprehensive look at the CNXML tags and explain some more advanced uses of the language.  Includes helpful examples of CNXML tags, extending the module created in The Basic CNXML tutorial.</md:abstract>
</metadata>
  
  <content>    
    <section id="example">
      <name>例</name>
      <para id="examp1">　テキストブックでよくあるように、チャプターやセクションの中に例を入れるでしょう。このため、ドキュメント内に例を含めることができるようにするタグを、CNXMLは提供しています。exampleタグは固有のid属性を持ち、子要素としてほとんどのタグを含むことができます。1番目は任意の<cnxn target="name" document="m9000">name</cnxn>です。詳細が知りたいならば、<link src="http://cnx.rice.edu/technology/cnxml/0.5/spec">CNXML
	Spec</link>に相談してください。
      </para>
      <example id="exampexamp">
	<code type="block">
	  <![CDATA[
<example id='tboneexam'>
  <figure id='tbonefig'>
    <name>T-Bone Steak</name>
    <media type='image/jpg' src='tbone.jpg'/>
  </figure>
</example>
	  ]]>
	</code>
      </example>
    </section>

    <section id="figure">
      <name>Figure</name>
      <para id="figp1">　<code>figure</code>タグは、ドキュメント内に図を作成するための構造を提供します。それらは2つ以上の<cnxn target="subfigure">subfigure</cnxn>タグか、1つの<cnxn target="media">media</cnxn>タグ、<cnxn target="table" document="m9007">table</cnxn>タグ、<cnxn target="code" document="m9007">code</cnxn>タグを含むことができます。
      </para>
      <para id="figp2">
	　<code>figure</code>タグは2つの属性を持っています。
	<list id="figlist">
	<item><code>id</code> - 固有のIDです。必ず必要です。</item>
	<item><code>orient</code> - 複数の<cnxn target="subfigure">subfigure</cnxn>（副図）をどのように表示するかを指定する属性です。<code>vertical</code>か<code>horizontal</code>という2つの値が入ります。ディフォルトでは<code>horizontal</code>が入ります。	  </item>
</list>
</para>
      <para id="name">　<code>figure</code>タグの任意のタグは<cnxn target="name" document="m9000">name</cnxn>です。これは図のタイトルとして使用されます。
      </para>
      <para id="media">　<code>name</code>タグは上で述べられているどのタグにも従います。しかし、最も一般的に使用されるタグは、画像、動画、音声、Javaアプレットなどを含めるmediaタグです。mediaタグは2つの属性を持っています。

	<list id="medialist">
	<item><code>src</code> - 表示されるメディアの場所</item>
	<item>
		<code>type</code> - 表示されるメディアのタイプの定義。それは有効な<link src="http://www.ietf.org/rfc/rfc1341.txt?number=1341">MIME</link>の一種であるかもしれません
	    <list id="MIME">
			<item>audio/FILETYPE - audio/mp3, audio/wav, etc.</item>
			<item>video/FILETYPE - video/qt, video/mov, etc.</item>
			<item>image/FILETYPE - image/png, image/gif, etc.</item>
			<item>application/FILETYPE - application/PostScript,
		application/x-java-applet, etc.</item>
		</list>
	</item>
</list>
</para>
      <para id="caption">　最後のタグは任意の<code>caption</code>タグです。これは図の小さな見出しを追加するのに使用されます。
      </para>
      <example id="figexamp">
	<code type="block">
	  <![CDATA[
<figure id='tbone'>
  <name>T-Bone Steak</name>
  <media type='image/jpeg' src='tbone.jpg'/>
  <caption>
    Upon successful completion of these documents, you should be able
    to grill a steak that looks just as good!
  </caption>
</figure>
	  ]]>
	</code>
      </example>
    </section>
    
    <section id="subfigure">
      <name>Subfigure</name>
      <para id="subp1">　<code>subfigure</code>タグは、1つ以上の<cnxn target="media">media</cnxn>、<cnxn target="code" document="m9007">code</cnxn>、<cnxn target="table" document="m9007">table</cnxn>を同じ<cnxn target="figure">figure</cnxn>内に含めたいときに使用します。
	
      </para>
      <para id="subp2">　<code>subfigure</code>タグの使い方は<cnxn target="figure">figure</cnxn>タグと同じです。任意の<code>id</code>属性、任意の最初の子要素の<cnxn target="name" document="m9000">name</cnxn>タグ、1つの<cnxn target="media">media</cnxn>、<cnxn target="code" document="m9007">code</cnxn>、<cnxn target="table" document="m9007">table</cnxn>があります。
      </para>
      <para id="subp3">　現在、<cnxn target="figure">figure</cnxn>の<code>orient</code>属性は重要になるので、副図が横並びで表示されるか、縦に表示されるかに関わらず、<code>orient</code>属性を指定してください。
      </para>
      <example id="subfigexamp">
	<para id="subp4">
	  <code type="block">
	  <![CDATA[
<figure orient='horizontal' id='horfig'>
  <name>Steaks</name>
  <subfigure id='subfigtbone1'>
    <name>T-Bone</name>
    <media type='image/jpeg' src='tbone.jpg'/>
  </subfigure>
  <subfigure id='subfingnystrip1'>
    <name>New York Strip</name>
    <media type='image/jpeg' src='ny_strip.gif'/>
  </subfigure>
  <caption>
      Upon successful completion of these documents, you
      should be able to grill a steak that looks just as good!
  </caption>
</figure>
	  ]]>
	  </code>
	  Or
	  <code type="block">
	  <![CDATA[
<figure orient='vertical' id='verfig'>
  <name>Steaks</name>
  <subfigure id='subfigtbone2'>
    <name>T-Bone</name>
    <media type='image/jpeg' src='tbone.jpg'/>
  </subfigure>
  <subfigure id='subfig2'>
    <name>New York Strip</name>
    <media type='image/jpeg' src='ny_strip.jpg'/>
  </subfigure>
  <caption>
    Upon successful completion of these documents, you
    should be able to grill a steak that looks just as good!
  </caption>
</figure>
	    ]]>
	  </code>
	</para>
      </example>
    </section>

    <section id="list">
      <name>List</name>
      <para id="listp1">　<code>list</code>タグはリストを作成するのに使用されます。<code>list</code>タグは2つの属性をもっています。

	<list id="listlist">
		<item><code>id</code> - 固有のIDです。必ず必要です。</item>
		<item><code>type</code> - リストのフォーマットの定義。<code>type</code>属性は<code>bulleted</code>（ディフォルト）、<code>enumerated</code>、<code>named-item</code>、<code>inline</code>という値を取ります。</item></list>
　<code>list</code>タグには、2つの子要素があります。<cnxn target="name">name</cnxn>（任意）と<code>item</code>です。これらはリストの情報が格納されているところです。
      </para>
      <example id="listexamp">
	<name>Example List</name>
	<para id="reglist">
	<code type="block">
		<![CDATA[
<list id='marinade' type='enumerated'>
  <name>Beer Marinade</name>
  <item>pour beer into large bowl</item>
  <item>add chili powder to taste</item>
  <item>squeeze half lime into beer marinade</item>
  <item>place steak in beer, let soak for 30 minutes</item>
</list>
	    ]]>
	</code>
	  　結果はこのようになります。
	  <list id="marinadedisplay" type="enumerated">
		<name>Beer Marinade</name>
		<item>pour beer into large bowl</item>
		<item>add chili powder to taste</item>
		<item>squeeze half lime into beer marinade</item>
		<item>place steak in beer, let soak for 30 minutes</item>
	</list>
</para>
      </example>

      <example id="namedlistexample">
	<name>New List Types Example</name>
	<section id="namedlistsec">
	  <name>Named Item Lists</name>
	  <para id="namedpara">　CNXML0.5では2つの新しいタイプのリストを使うことができます。最初のタイプはnamed itemリストです。このタイプのリストを使うには、listタグの<code>type</code>属性に<code>named-item</code>と指定してください。名前のあるリストの各アイテムは名前を持ちます。

	    <code type="block">
		<![CDATA[
<list id='marinade' type='named-item'>
  <name>Beer Marinade</name>    
  <item><name>Step 1</name>pour beer into large bowl</item>
  <item><name>Step 2</name>add chili powder to taste</item>
  <item><name>Step 3</name>squeeze half lime into beer marinade</item>
  <item><name>Step 4</name>place steak in beer, let soak for 30 minutes</item>
</list>
	      ]]>
	</code>
	    　結果はこのようになります。
	    <list id="marinade" type="named-item">
		<name>Beer Marinade</name>
		<item><name>Step 1</name>pour beer into large bowl</item>
		<item><name>Step 2</name>add chili powder to taste</item>
		<item>
			<name>Step 3</name>squeeze half lime into beer marinade</item>
		<item>
			<name>Step 4</name>place steak in beer, let soak for
		30 minutes
	      </item>
	</list>
</para>
	</section>
	
	<section id="inlinelists">
	  <name>Inline Lists</name>
	  <para id="inlinelistpara">
　もう1つの新しいタイプのリストはinlineリストです。このタイプのリストは以下のようになります。
	    <code type="block">
		<![CDATA[ 
In order to make a good marinade follow these directions:<list
id='marinade' type='inline'>
  <name>Beer Marinade</name>
  <item><name>Step 1</name>pour beer into large bowl</item>
  <item><name>Step 2</name>add chili powder to taste</item>
  <item><name>Step 3</name>squeeze half lime into beer marinade</item>
  <item><name>Step 4</name>place steak in beer, let soak for 30 minutes</item>
</list>.
	      ]]>
	</code>
 
	    The resulting list will look like: In order to make a good
	    marinade follow these directions:
	    
	    <list id="marinade2" type="inline">
		<name>Beer Marinade</name>
		<item><name>Step 1</name>pour beer into large bowl</item>
		<item><name>Step 2</name>add chili powder to taste</item>
		<item>
			<name>Step 3</name>squeeze half lime into beer marinade</item>
		<item>
			<name>Step 4</name>place steak in beer, let soak for 30 minutes</item>
	</list>
</para>
	</section>
      </example>
    </section>
    
    <section id="equation">
      <name>Equation</name>
      <para id="eqnp1a">　<code>equation</code>タグは、ASCIIテキストや数式を表示するための<cnxn target="media">media</cnxn>などを使って、Connexions内のドキュメントで数式を表示するために使用されます。

	<note type="note">しかし、数式を表示するときは、<cnxn document="m9008">MathML</cnxn>タグで数式を使うことが推奨されます。</note>
</para>

      <section id="nonmathml">
	<name>ASCII Text and Images</name>
	<para id="eqnp2">　最初の子要素は、ASCIIテキストに埋め込まれた<cnxn target="media">media</cnxn>タグの番号に続く、任意の<cnxn target="name" document="m9000">name</cnxn>です。
	</para>
	<example id="equationexample">
	  <para id="eqnpara">
	    <code type="block">
	    <![CDATA[
<equation id="eqn14">
  <name>Euler's Relation</name>
  <media type='image/gif' src='euler.gif' />
</equation>
	    ]]>
	    </code>
	    <code type="block">
	    <![CDATA[
<equation id='eqn15'>
  <name>Simple Arithmetic</name>
    11+27=38
</equation>
	    ]]>
	    </code>
	    This equation will display as: 
	    <equation id="eqn15">
	      <name>Simple Arithmetic</name>
	      11+27=38
	    </equation>
	  </para>
	</example>
      </section>
    </section>

    <section id="definition">
      <name>Definition</name>
      <para id="defp1">　<code>definition</code>タグはConnexionsドキュメントの単語を定義するのに使用されます。それは必ず<code>id</code>属性を持ち、<cnxn target="term" document="m9000">term</cnxn>、<code>meaning</code>、<cnxn target="example">example</cnxn>という3つの子要素を持ちます。definitionタグの使い方は少し難しいので、<cnxn target="definitionexamp"/>を調べることを忘れないでください。
      </para>
      <para id="defp2">　最初の子要素のタグは、定義された単語や熟語を含む<cnxn target="term" document="m9000">term</cnxn>タグです。この次にはいろいろな<cnxn target="example">example</cnxn>を伴った<code>meaning</code>タグが来ます。この過程は繰り返されます。
      </para>
      <example id="definitionexamp">
	<code type="block">
	  <![CDATA[
<definition id='tbonedef'>
  <term>T-Bone</term>
  <meaning>
    "The T-bone steak is cut between 1 and 3 inches thick and comes
     from the center section of the short loin. This steak is
     characterized by its T-shape bone, has a fine-grained shell and a
     small tenderloin eye,"
     <cite>http://www.chophousecalgary.com/steak.html</cite>.
  </meaning>
  <example id='tboneexam'>
    <figure id='tbonefig'>
      <name>T-Bone Steak</name>
      <media type='image/jpeg' src='tbone.jpg'/>
    </figure>
  </example>
</definition>
	  ]]>
	</code>
	<para id="defpara">
	  <definition id="tbonedef">
	    <term>T-Bone</term>
	    <meaning>
	      "The T-bone steak is cut between 1 and 3 inches thick
	      and comes from the center section of the short
	      loin. This steak is characterized by its T-shape bone,
	      has a fine-grained shell and a small tenderloin eye,"
	      <cite>http://www.chophousecalgary.com/steak.html</cite>.
	    </meaning>
	    <example id="tboneexam">
	      <figure id="tbonefig">
		<name>T-Bone Steak</name>
		<media type="image/jpeg" src="tbone.jpg"/>
	      </figure>
	    </example>
	  </definition>
	</para>
      </example>
    </section>

    <section id="rule">
      <name>Rule</name>
      <para id="rule_par1">　<code>rule</code>タグは、定理、原理、経験則などのルールを、CNXMLドキュメントに挿入するのに使用されます。それは2つの属性を持っています。

	<list id="rulelist">
		<item><code>id</code> - 固有のID。必ず必要です。</item>
		<item><code>type</code> - ルールの種類。必ず必要です。（例えば定理、原理、経験則）</item>
	</list>
　また任意の<cnxn target="name" document="m9000">name</cnxn>タグ、1つ以上の<cnxn target="statement">statement</cnxn>タグ、<cnxn target="proof">proof</cnxn>もしくは<cnxn target="example">example</cnxn>タグを持つかもしれません。
      </para>

      <section id="statement">
	<name>Statement</name>
	<para id="state_p1">　<code>statement</code>タグは<code>rule</code>タグの中で使用され、ルールの宣言を定義します。任意の<code>id</code>属性を持ちます。また、<cnxn target="para" document="m9000">para</cnxn>と<cnxn target="equation">equation</cnxn>の2つの子要素を持ちます。
	</para>
      </section>
      
      <section id="proof">
	<name>Proof</name>
	<para id="proof_p1">　<code>proof</code>タグは<code>rule</code>タグの中で使用され、ルールの証拠をマークします。それは任意の<code>id</code>属性を持ち、別のrule、<cnxn target="para" document="m9000">para</cnxn>、<cnxn target="equation">equation</cnxn>、<cnxn target="figure">figure</cnxn>、<cnxn target="list" document="m9000">list</cnxn>タグを持つことがあります。
	</para>
      </section>

      <section id="ruleexmpsec">
	<name>Using rule</name>
	<example id="ruleexmp">
	  <code type="block">
	    <![CDATA[
<rule id='murph' type='law'> 
  <name>Murphy's Law</name>
  <statement>
    <para id='murphp1'>
      If there are two or more ways to do something, and one of those
      ways can result in a catastrophe, then someone will do it.
    </para>
  </statement>
  <proof>
    <para id='murphp2'>
      Edward A. Murphy, Jr. was one of the engineers on the
      rocket-sled experiments that were done by the U.S. Air Force in
      1949 to test human acceleration tolerances (USAF project
      MX981). One experiment involved a set of 16 accelerometers
      mounted to different parts of the subject's body. There were two
      ways each sensor could be glued to its mount, and somebody
      methodically installed all 16 the wrong way around. Murphy then
      made the original form of his pronouncement, which the test
      subject (Major John Paul Stapp) quoted at a news conference a
      few days later
      <cite>http://www.lylemariam.com/murphy.htm</cite>.
    </para>
  </proof>
</rule>
	    ]]>
	  </code>
	  <para id="rulepara">
	    <rule id="murph" type="law"> 
	      <name>Murphy's Law</name>
	      <statement>
		<para id="murphp1">
		  If there are two or more ways to do something, and
		  one of those ways can result in a catastrophe, then
		  someone will do it.
		</para>
	      </statement>
	      <proof>
		<para id="murphp2">
		  Edward A. Murphy, Jr. was one of the engineers on
		  the rocket-sled experiments that were done by the
		  U.S. Air Force in 1949 to test human acceleration
		  tolerances (USAF project MX981). One experiment
		  involved a set of 16 accelerometers mounted to
		  different parts of the subject's body. There were
		  two ways each sensor could be glued to its mount,
		  and somebody methodically installed all 16 the wrong
		  way around. Murphy then made the original form of
		  his pronouncement, which the test subject (Major
		  John Paul Stapp) quoted at a news conference a few
		  days later
		  <cite>http://www.lylemariam.com/murphy.htm</cite>.
		</para>
	      </proof>
	    </rule>
	  </para>
	</example>
      </section>
    </section>

    <section id="end">
      <name>最後に</name>
      <para id="endp1">　更なる情報は<cnxn document="m9007">The Advanced CNXML</cnxn>を見てください。または<link src="http://cnx.rice.edu/technology/cnxml/0.5/spec">CNXML
	Spec</link>に相談してください。</para>
    </section>
  </content>
</document>
