DocBook V4.0 Example Document

Norman Walsh


Table of Contents

1 Block-level Markup
2 Inline markup

There's a new simple-alternative for msgentry: simplemsgentry.

Longer descriptions are possible in a revhistory:

Revision History
Revision 2todaynwalsh
Revision 1yesterdaynwalsh

Ordered and itemized lists can have titles:

Linespecific environments can indicate line numbering:

<!ENTITY % linespecific.attrib
	"format		NOTATION
			(linespecific)	'linespecific'
         linenumbering	(numbered|unnumbered) 	#IMPLIED">

Added classsynopsis for documenting object-oriented programming language classes. Here's one example:

 public TextFileWriter extends HandlerBase {

  private Writer writer ;
  public String writerName = "MyWriter";
static public void write(ResultTreeFragment frag,                            String file)     throws SAXException;
}

The sgmltag element has new class attribute values: xmlpi and emptytag. These produce <?processing instructions?> and <empty-tag/> markup suitable for XML.