<< Chapter < Page Chapter >> Page >

The first child tag should be term which contains the word/phrase being defined. It is then followed by a meaning tag which is followed by any number of example s. This process repeats forall meanings.

<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 ischaracterized 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'><title>T-Bone Steak</title><media id="image-example" display="block" alt="A T-bone Steak."><image mime-type='image/jpeg' src='tbone.jpg'/></media></media></figure></example></definition>

T-Bone
"The T-bone steak is cut between 1 and 3 inches thick and comes from the center section of the shortloin. This steak is characterized by its T-shape bone, has a fine-grained shell and a small tenderloin eye," http://www.chophousecalgary.com/steak.html .

Rule

The rule tag is used to insert a rule, such as a theorem, axiom, or rule of thumb, into a cnxml document. Ithas two attributes:

  • id - required, unique ID
  • type - required, specificies the type of rule (e.g. theorem, axiom, rule of thumb, etc.)
It may also have an optional title and it must have one or more statement tags and zero or more proof or example tags.

Statement

The statement tag is used inside a rule tag and defines the statement of the rule. It has an optional id attribute, which, like all IDs, must be unique. It also has twochildren, para and equation .

Proof

The proof tag is used inside the rule tag and marks the proof of the rule. It has an optional id attribute and may contain another rule, para , equation , figure , or list tag.

Using rule

<rule id='murph' type='law'><title>Murphy's Law</title><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 in1949 to test human acceleration tolerances (USAF project MX981). One experiment involved a set of 16 accelerometersmounted to different parts of the subject's body. There were two ways each sensor could be glued to its mount, and somebodymethodically installed all 16 the wrong way around. Murphy then made the original form of his pronouncement, which the testsubject (Major John Paul Stapp) quoted at a news conference a few days later<cite>http://www.lylemariam.com/murphy.htm</cite>.</para></proof></rule>

Murphy's law

If there are two or more ways to do something, and one of those ways can result in a catastrophe, thensomeone will do it.

Edward A. Murphy, Jr. was one of the engineers on the rocket-sled experiments that were done by theU.S. Air Force in 1949 to test human acceleration tolerances (USAF project MX981). One experimentinvolved a set of 16 accelerometers mounted to different parts of the subject's body. There weretwo ways each sensor could be glued to its mount, and somebody methodically installed all 16 the wrongway around. Murphy then made the original form of his pronouncement, which the test subject (MajorJohn Paul Stapp) quoted at a news conference a few days later http://www.lylemariam.com/murphy.htm .

Finishing remarks

Thanks for making it through another tutorial. I'm sure that you still want to know more so here's a link to The Advanced CNXML .

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Cnxml tutorial. OpenStax CNX. Jul 08, 2009 Download for free at http://cnx.org/content/col10121/1.10
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Cnxml tutorial' conversation and receive update notifications?

Ask