|
|||||
XML to HTML conversions: explicit hypertext HTML | |||||
Introduction: XML to HTML conversions: explicit hypertext |
Sample
The explink.xom program produces the following HTML from the mart.xml sample input file.
<exodoc="explink">explink.htm</exo> <title>The XQ39 Space Modulator</title> <h1>The XQ39 Space Modulator</h1> Maurice B. Martian<a name="exp-OVER"></a> <h2>Chapter 1, Executive Overview</h2> <b>For:</b> <i>Managers</i> <p> The Space Modulator is an excellent product for dispensing of rabbits, Tasmanian devils, and other undesirables.<p> Proper care and maintenance of all parts (such as the trigger, battery chamber and laser doohicky) are necessary for proper operation.<p> If you are an engineer, please see <a href="#exp-SETUP">Chapter 2, Setting up the Modulator</a>. If you are a Martian centurion, please see <a href="#exp-USAGE">Chapter 3, Using the Modulator</a>.<a name="exp-SETUP"></a> <h2>Chapter 2, Setting up the Modulator</h2> <b>For:</b> <i>Engineers</i> <p> Put down your beer and pay attention.<p> If you plan to shoot somebody, see <a href="#exp-USAGE">Chapter 3, Using the Modulator</a>. If you don't know how to set it up or use it, you must be a manager: please see <a href="#exp-OVER">Chapter 1, Executive Overview</a>.<p> Take the modulator out of the box of styrofoam packing pellets. Insert four double-A batteries into the battery chamber. Clean the laser doohicky carefully. Grease the trigger with WD-40.<a name="exp-USAGE"></a> <h2>Chapter 3, Using the Modulator</h2> <b>For:</b> <i>Space Centurions in Funny Hats</i> <p> Hold the space modulator by the handle. Make sure the laser doohicky is facing away from you.<p> Put your finger on the trigger. Aim the laser doohicky at the rabbit. Pull on the trigger.<p> If nothing happened, blame the engineer and have him read <a href="#exp-SETUP">Chapter 2, Setting up the Modulator</a>. If he's drunk, have your manager read <a href="#exp-OVER">Chapter 1, Executive Overview</a>, and then fire the engineer.<p> If it worked, go clean up the rabbit parts.<a name="exp-CONC"></a> <h2>Chapter 4, Conclusion</h2> <b>For:</b> <i>Managers</i> <p> We hope that your XQ39 Space Modulator gives you many years of destruction and worry-free usage.<p> No warranty or guarantee expressed or implied. <h2>Glossary</h2> <ul> <li>trigger: The thing that make the thing shoot. <li>laser doohicky: The part that shoots. <li>battery chamber: The thing that holds the batteries. <li>handle: The thing you hold. </ul>
---- |