$Revision: 1.3 $
$Date: 2002/06/12 11:18:20 $
para — A paragraph
para ::= (#PCDATA|footnoteref|xref|abbrev|acronym|citetitle|emphasis| footnote|phrase|quote|trademark|link|ulink|command| computeroutput|email|filename|literal|option|replaceable| systemitem|userinput|inlinemediaobject)*
Common attributes
A Para is a paragraph. Paragraphs in DocBook may contain almost all inlines and most block elements. Sectioning and higher-level structural elements are excluded. DocBook offers two variants of paragraph: SimPara, which cannot contain block elements, and FormalPara, which has a title.
Some processing systems may find the presence of block elements in a paragraph difficult to handle. On the other hand, it is frequently most logical, from a structural point of view, to include block elements, especially informal block elements, in the paragraphs that describe their content. There is no easy answer to this problem.
Formatted as a displayed block.
These elements contain para: abstract, appendix, article, authorblurb, bibliodiv, bibliography, blockquote, caption, entry, epigraph, example, footnote, legalnotice, listitem, note, revdescription, section, sidebar, textobject.
The following elements occur in para: abbrev, acronym, citetitle, command, computeroutput, email, emphasis, filename, footnote, footnoteref, inlinemediaobject, link, literal, option, phrase, quote, replaceable, systemitem, trademark, ulink, userinput, xref.
???, ???.
Ordinary paragraphs can contain most block elements:
<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> <para> The component suffered from three failings: <itemizedlist> <listitem><para>It was slow</para></listitem> <listitem><para>It ran hot</para></listitem> <listitem><para>It didn't actually work</para></listitem> </itemizedlist> Of these three, the last was probably the most important. </para>
The component suffered from three failings:
It was slow
It ran hot
It didn't actually work
Formal paragraphs include a title:
<!DOCTYPE formalpara PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> <formalpara><title>A Test</title> <para> This is a test. This is only a test. Had this been a real example, it would have made more sense. </para> </formalpara>
A Test.
This is a test. This is only a test. Had this been a real example, it would have made more sense.
Simple paragraphs may not contain block elements:
<!DOCTYPE simpara PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> <simpara> Just the text, ma'am. </simpara>
Just the text, ma'am.
For additional examples, see also abbrev, abstract, acronym, appendix, article, authorgroup, blockquote, citetitle, command, computeroutput, emphasis, filename, footnote, footnoteref, imageobject, inlinemediaobject, itemizedlist, link, literal, note, option, orderedlist, phrase, quote, section, sidebar, systemitem, table, title, titleabbrev, trademark, ulink, userinput, variablelist, videoobject, xref.