1. Overview

1.1. Purpose

text.dtd is a special DTD in the sense that it is reused within other DTDs, specifically doc.dtd and page.dtd. These DTDs define the overall structure of a specialized document. text.dtd is used to define the elements to be used for the text within the actual content. Examples of text.dtd elements are formatting elements like paragraphs, sections, tables and elements for linking and images. In a sense text.dtd is much like (X)HTML in that it defines constructs for textual elements but not the overall structure of a specific document such as a memo or FAQ. The advantage of text.dtd is that it defines only a limited number of elements that have no or few attributes.

Power users may immediately go to the DTD definition.

1.2. Elements

Below is an overview the XML tags defined in text.dtd.

element
purpose
#PCDATA
untagged text (discouraged)
named anchor (like HTML <A name=>)
no formatting (like HTML <PRE>)
boldface text (like HTML <B>)
line break (like HTML <BR>)
center text (like HTML <CENTER>)
code (fixed width usually Courier) text (like HTML <CODE>)
name/definition list
image (like HTML <IMG>)
include file or part of file as escaped text (usually within listing)
italic text (like HTML <I>)
hyperlink (like HTML <A href=>)
(usually) bullet list (like HTML <DL>)
code listing usually outlined in table
paragraph (like HTML <P>)
nested sections (like HTML <H[1-6]>)
sequential (usually numbered) list (like HTML <OL>)
split into left and right column
emphasize text
simple table (like HTML <TABLE>)
escape into using plain HTML through XHTML