|
|||||
XML to HTML conversions: implicit hypertext HTML | |||||
Introduction: XML to HTML conversions: implicit hypertext |
Sample
The implink.xom program produces the following HTML from the mart.xml sample input file.
<title>The XQ39 Space Modulator</title> <h1>The XQ39 Space Modulator</h1> Maurice B. Martian<hr><a name="exp-OVER"> <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 <a href="#content-trigger">trigger</a>, <a href="#content-battery chamber">battery chamber</a> and <a href="#content-laser doohicky">laser doohicky</a>) 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>.<hr><a name="exp-SETUP"> <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 <a href="#content-battery chamber">battery chamber</a>. Clean the <a href="#content-laser doohicky">laser doohicky</a> carefully. Grease the <a href="#content-trigger">trigger</a> with WD-40.<hr><a name="exp-USAGE"> <h2>Chapter 3, Using the Modulator</h2> <b>For:</b> <i>Space Centurions in Funny Hats</i> <p> Hold the space modulator by the <a href="#content-handle">handle</a>. Make sure the <a href="#content-laser doohicky">laser doohicky</a> is facing away from you.<p> Put your finger on the <a href="#content-trigger">trigger</a>. Aim the <a href="#content-laser doohicky">laser doohicky</a> at the rabbit. Pull on the <a href="#content-trigger">trigger</a>.<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.<hr><a name="exp-CONC"> <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. <hr><h2>Glossary</h2> <ul> <a name="content-trigger"><li>trigger: The thing that make the thing shoot <a name="content-laser doohicky"><li>laser doohicky: The part that shoots <a name="content-battery chamber"><li>battery chamber: The thing that holds the batteries <a name="content-handle"><li>handle: The thing you hold </ul> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><center><i>The End</i></center>
---- |