O'Reilly logo

DocBook 5: The Definitive Guide by Richard L. Hamilton, Norman Walsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

sect1 — A top-level section of a document

Synopsis

sect1 ::= ((((title & titleabbrev? & subtitle?), infodb.titleforbidden.info) | info db.titlereq.info), (((annotation | bridgehead | remark | revhistory | Indexing inlines | Admonition elements | Formal elements | Graphic elements | Informal elements | List elements | Paragraph elements | Publishing elements | Synopsis elements | Technical elements | Verbatim elements)+, ((sect2+, simplesect*) | simplesect+)?) | (sect2+, simplesect*) | simplesect+), (bibliography | glossary | index | toc)*)

Attribute synopsis

Common attributes and common linking attributes.

Additional attributes:

  • label

  • status

Additional constraints

  • If this element is the root element, it must have a version attribute.

Description

A sect1 is one of the top-level sectioning elements in a component. There are three types of sectioning elements in DocBook:

  • Explicitly numbered sections, sect1sect5, which must be properly nested and can only be five levels deep.

  • Recursive sections, which are alternatives to the numbered sections and have unbounded depth.

  • simplesects, which are terminal. The simplesects can occur as the leaf sections in either recursive sections or any of the numbered sections, or directly in components.

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.

This means that you cannot have content in the sect1 after the end of a sect2. This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required