|
|||||
XML to HTML conversions: basic formatting HTML output | |||||
Introduction: XML to HTML conversions: basic formatting |
Sample
The format.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<title>Executive Overview</title> <h1>Executive Overview</h1> <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 [some reference] . If you are a Martian centurion, please see [some reference] .<title>Setting up the Modulator</title> <h1>Setting up the Modulator</h1> <b>For:</b> <i>Engineers</i> <p> Put down your beer and pay attention.<p> If you plan to shoot somebody, see [some reference] . If you don't know how to set it up or use it, you must be a manager: please see [some reference] .<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.<title>Using the Modulator</title> <h1>Using the Modulator</h1> <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 [some reference] . If he's drunk, have your manager read [some reference] , and then fire the engineer.<p> If it worked, go clean up the rabbit parts.<title>Conclusion</title> <h1>Conclusion</h1> <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>
---- |