1<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"><title>DocBook V4.0 Example Document</title><meta name="generator" content="DocBook XSL Stylesheets V1.40"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" id="id2862427"><div class="titlepage"><div><h1 class="title"><a name="id2862427"></a>DocBook V4.0 Example Document</h1></div><div><h3 class="author">Norman Walsh</h3></div><div><div class="abstract"><p><a name="id2862459"></a><b>Abstract</b></p><p>This document demonstrates the new tags in DocBook V4.0.</p><p>The focus of this document is to present examples of new elements, 2minor changes such as the addition of new attribute values are not 3included.</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>1 <a href="#id2862488">Block-level Markup</a></dt><dt>2 <a href="#id2770763">Inline markup</a></dt></dl></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="id2862488"></a>Chapter 1. Block-level Markup</h2></div></div><p>There's a new simple-alternative for <tt>msgentry</tt>: 4<tt>simplemsgentry</tt>.</p><div class="simplemsgentry"><a name="id2601208"></a><p>The text of a message</p><div class="msgexplan"><a name="id2862538"></a><p>An explanation of the message.</p></div></div><div class="simplemsgentry"><a name="id2888672"></a><p>The text of a message</p><div class="msgexplan"><a name="id2888689"></a><p>An explanation of the message.</p></div></div><p>Longer descriptions are possible in a <tt>revhistory</tt>: 5</p><p> 6<div class="revhistory"><table border="0" width="100%" summary="Revision history"><tr><th align="left" valign="top" colspan="3"><b>Revision History</b></th></tr><tr><td align="left">Revision 2</td><td align="left">today</td><td align="left">nwalsh</td></tr><tr><td align="left">Revision 1</td><td align="left">yesterday</td><td align="left">nwalsh</td></tr></table></div> 7</p><p>Ordered and itemized lists can have titles:</p><div class="itemizedlist"><p><b>Itemized List</b></p><ul><li><p><a name="id2767751"></a>First thing</p></li><li><p><a name="id2769756"></a>Second thing</p></li><li><p><a name="id2769767"></a>Third thing</p></li></ul></div><div class="itemizedlist"><p><b>Ordered List</b></p><ul><li><p><a name="id2769790"></a>First thing</p></li><li><p><a name="id2769801"></a>Second thing</p></li><li><p><a name="id2769811"></a>Third thing</p></li></ul></div><p>Linespecific environments can indicate line numbering:</p><pre class="programlisting"> 8<!ENTITY % linespecific.attrib 9 "format NOTATION 10 (linespecific) 'linespecific' 11 linenumbering (numbered|unnumbered) #IMPLIED"> 12</pre><p>Added <tt>classsynopsis</tt> for documenting 13object-oriented programming language classes. Here's one example:</p><pre class="classsynopsis"> <span class="ooclass"><span class="modifier">public�</span><span class="classname">TextFileWriter</span></span> extends <span class="ooclass"><span class="classname">HandlerBase</span></span>�{ 14 15<div class="fieldsynopsis">��<span class="modifier">private�</span><span class="type">Writer�</span><span class="varname">writer�</span>;</div><div class="fieldsynopsis">��<span class="modifier">public�</span><span class="type">String�</span><span class="varname">writerName�</span><span class="initializer">=�"MyWriter"</span>;</div><div class="methodsynopsis"> <span class="modifier">static�</span><span class="modifier">public�</span><span class="void">void�</span><span class="methodname">write</span>(<span class="methodparam"><span class="type">ResultTreeFragment�</span><span class="parameter">frag</span></span>, 16���������������������������<span class="methodparam"><span class="type">String�</span><span class="parameter">file</span></span>) 17����throws�<span class="exceptionname">SAXException</span>;</div>}</pre></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="id2770763"></a>Chapter 2. Inline markup</h2></div></div><p>The <tt>sgmltag</tt> element has new 18<tt>class</tt> attribute values: 19<tt>xmlpi</tt> and 20<tt>emptytag</tt>. These produce 21<tt><?processing instructions?></tt> 22and <tt><empty-tag/></tt> markup 23suitable for XML. 24</p></div></div></body></html> 25