| 1 | <refentry id="simplesect.element"> |
| 2 | <?dbhtml filename="simplesect.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>simplesect</secondary></indexterm> |
| 11 | <refentrytitle>simplesect</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>simplesect</refname> |
| 16 | <refpurpose>&simplesect.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &simplesect.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | <sgmltag>SimpleSect</sgmltag> is one of the top-level sectioning elements in |
| 24 | a component. There are three types of sectioning elements in |
| 25 | DocBook: |
| 26 | </para> |
| 27 | |
| 28 | <itemizedlist> |
| 29 | <listitem><para> |
| 30 | Explicitly numbered sections, <sgmltag>Sect1</sgmltag>…<sgmltag>Sect5</sgmltag>, |
| 31 | which must be properly nested and can only be five levels deep. |
| 32 | </para></listitem> |
| 33 | <listitem><para> |
| 34 | Recursive <sgmltag>Section</sgmltag>s, which are alternative to the numbered |
| 35 | sections and have unbounded depth. |
| 36 | </para></listitem> |
| 37 | <listitem><para> |
| 38 | <sgmltag>SimpleSect</sgmltag>s, which are terminal. <sgmltag>SimpleSect</sgmltag>s can |
| 39 | occur as the <quote>leaf</quote> sections in either recursive sections or any |
| 40 | of the numbered sections, or directly in components. |
| 41 | </para></listitem> |
| 42 | </itemizedlist> |
| 43 | |
| 44 | <para> |
| 45 | <sgmltag>SimpleSect</sgmltag>s may be more convenient than numbered |
| 46 | sections in some authoring environments because they can be |
| 47 | moved around in the document hierarchy without renaming. |
| 48 | </para> |
| 49 | |
| 50 | <para> |
| 51 | None of the sectioning elements is allowed to <quote>float</quote> in |
| 52 | a component. You can place paragraphs and other block elements |
| 53 | before a section, but you cannot place anything after it. |
| 54 | </para> |
| 55 | |
| 56 | <refsect2><title>Processing expectations</title> |
| 57 | <para> |
| 58 | &format.block; Sometimes sections are numbered. |
| 59 | </para> |
| 60 | </refsect2> |
| 61 | |
| 62 | |
| 63 | &simplesect.parents.gen; |
| 64 | &simplesect.children.gen; |
| 65 | </refsect1> |
| 66 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 67 | &simplesect.seealso.gen; |
| 68 | </refsect1> |
| 69 | <refsect1><title>Examples</title> |
| 70 | |
| 71 | <informalexample role="example-source"> |
| 72 | <programlisting>&simplesect.example.1.txt;</programlisting> |
| 73 | </informalexample> |
| 74 | |
| 75 | &simplesect.example.seealso.gen; |
| 76 | </refsect1> |
| 77 | </refentry> |
| 78 |