warning

warning — An admonition set off from the text.

Synopsis

Additional Constraints

  • caution must not occur in the descendants of warning
  • important must not occur in the descendants of warning
  • note must not occur in the descendants of warning
  • tip must not occur in the descendants of warning
  • warning must not occur in the descendants of warning

Description

A warning is an admonition, usually set off from the main text.

In some types of documentation, the semantics of admonitions are clearly defined (caution might imply the possibility of harm to equipment whereas warning might imply harm to a person), but DocBook makes no such assertions.

Processing expectations

Formatted as a displayed block. Often outputs the generated text “Warning” or some other visible indication of the type of admonition, especially if a title is not present. Sometimes outputs a graphical icon or other symbol as well.

Parents [+]

This element occurs in 72 elements.

Children [+]

This element contains 63 elements.

Examples

  1 <article xmlns='http://docbook.org/ns/docbook'>
  2 <title>Example warning</title>
    
  4 <warning>
    <para>Striking your thumb with a hammer may cause severe pain and discomfort.
  6 </para>
    </warning>
  8 
    </article>

Warning

Striking your thumb with a hammer may cause severe pain and discomfort.

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