para

para — A paragraph.

Synopsis

Additional Constraints

  • The root element must have a version attribute.

Description

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.

Processing expectations

Formatted as a displayed block.

Parents [+]

This element occurs in 77 elements.

Children [+]

This element contains 151 elements.

Examples

An ordinary paragraph.

  1 <article xmlns='http://docbook.org/ns/docbook'>
  2 <title>Example para</title>
    
  4 <para>The component suffered from three failings:
    <itemizedlist>
  6 <listitem><para>It was slow</para></listitem>
    <listitem><para>It ran hot</para></listitem>
  8 <listitem><para>It didn't actually work</para></listitem>
    </itemizedlist>
 10 Of these three, the last was probably the most important.
    </para>
 12 
    </article>

The component suffered from three failings:

  • It was slow

  • It ran hot

  • It didn't actually work

Of these three, the last was probably the most important.

A formal paragraph.

  1 <article xmlns='http://docbook.org/ns/docbook'>
  2 <title>Example para</title>
    
  4 <formalpara><title>A Test</title>
    <para>This is a test.  This is only a test.  Had this been a real
  6 example, it would have made more sense.
    </para>
  8 </formalpara>
    
 10 </article>

This is a test. This is only a test. Had this been a real example, it would have made more sense.

A simple paragraph.

  1 <article xmlns='http://docbook.org/ns/docbook'>
  2 <title>Example para</title>
    
  4 <simpara>
    Just the text, ma'am.
  6 </simpara>
    
  8 </article>

Just the text, ma'am.

Last revised by Norman Walsh on 6 Jun 2011 (git hash: 6ffcc7640bbc5f852a318e452c9f210f03292cb9)