section
section — A recursive section.
Synopsis
section ::=
- Sequence of:
- One of:
- Zero or more of:
- Optionally one of:
- Sequence of:
- One or more of:
bridgehead
dialogue
drama
formalgroup
poetry
remark
revhistory
stagedir
- Indexing inlines
- Admonition elements
- Formal elements
- Graphic elements
- Informal elements
- List elements
- Paragraph elements
- Publishing elements
- Technical elements
- Verbatim elements
- Optionally one of:
- Sequence of:
- One or more of:
- Zero or more of:
- One or more of:
- Sequence of:
- One or more of:
- Sequence of:
- One or more of:
- Zero or more of:
- One or more of:
- Sequence of:
- Zero or more of:
Attributes
Common attributes and common linking attributes.
Additional attributes:
- At most one of:
- class (enumeration)
- “legal”
- All or none of:
- class (enumeration)
- “other”
- otherclass (NMTOKEN)
- class (enumeration)
- class (enumeration)
- label
- status
Additional Constraints
- If this element is the root element, it must have a version attribute.
Description
A section
is one of the top-level sectioning elements in a component. There are
two types of sectioning elements in
DocBook:
Recursive
section
s, which are an alternative to the numbered sections and have unbounded depth.simplesect
s, which are terminal. Thesimplesect
s can occur as theleaf
sections in recursive sections or any of the numbered sections, or directly in components.
The section
element may be more convenient than
numbered sections in some authoring environments because instances can
be moved around in the document hierarchy without renaming.
None of the sectioning elements is allowed to
float
in a component. You can place paragraphs and
other block elements before a section, but you cannot place anything
after it.
Processing expectations
Formatted as a displayed block. Sometimes sections are numbered.
Use of deeply nested section
s may cause problems in
some processing systems.
Attributes
Common attributes and common linking attributes.
- any attribute
Any attribute in any other explicit namespace
- class
Identifies the nature of the section
- label
Specifies an identifying string for presentation purposes
- otherclass
Identifies a non-standard section class
- status
Identifies the editorial or publication status of the element on which it occurs
Parents
These elements contain section
: appendix
, article
, chapter
, partintro
, preface
, section
, sidebar
.
Children
The following elements occur in section
: address
, anchor
, bibliography
, bibliolist
, blockquote
, bridgehead
, calloutlist
, caution
, danger
, dialogue
, drama
, epigraph
, equation
, example
, figure
, formalgroup
, formalpara
, glossary
, glosslist
, important
, index
, indexterm
(db.indexterm.endofrange), indexterm
(db.indexterm.singular), indexterm
(db.indexterm.startofrange), info
(db.titleforbidden.info), info
(db.titlereq.info), informalequation
, informalexample
, informalfigure
, informaltable
, itemizedlist
, literallayout
, mediaobject
, note
, orderedlist
, para
, poetry
, procedure
, qandaset
, remark
, revhistory
, section
, sidebar
, simpara
, simplelist
, simplesect
, stagedir
, subtitle
, table
, task
, tip
, title
, titleabbrev
, toc
, variablelist
, warning
.
See Also
Related elements: bridgehead
, simplesect
.
Examples
1 |<article xmlns='http://docbook.org/ns/docbook'>
|<title>Example section</title>
||
<para>This <tag>article</tag> uses recursive sections.</para>
5 ||
<section>
|<title>Like a Sect1</title>
|<subtitle>Or How I Learned to Let Go of Enumeration
|and Love to Recurse</subtitle>
10 |<info>
|<abstract>
|<para>A trivial example of recursive sections.</para>
|</abstract>
|</info>
15 |<para>This section is like a Sect1.</para>
|<section><title>Like a Sect2</title>
|<para>This section is like a Sect2.</para>
|<section><title>Like a Sect3</title>
|<para>This section is like a Sect3.</para>
20 |<section><title>Like a Sect4</title>
|<para>This section is like a Sect4.</para>
|<section><title>Like a Sect5</title>
|<para>This section is like a Sect5.</para>
|<section><title>Would be like a Sect6</title>
25 |<para>This section would be like a Sect6,
|if there were one.</para>
|<section><title>Would be like a Sect7</title>
|<para>This section would be like a Sect7,
|if there was one.</para>
30 |</section>
|</section>
|</section>
|</section>
|</section>
35 |</section>
|</section>
||
</article>