Debian Codegraph @

en/refpages/elements/section/refentry.xml

raw symbols SCIP
1 <refentry id="section.element" revision='3.1'>
2 <?dbhtml filename="section.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>section</secondary></indexterm>
11 <refentrytitle>section</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>section</refname>
16 <refpurpose>&section.purpose;</refpurpose>
17 </refnamediv>
18
19 &section.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>
23 <sgmltag>Section</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>&hellip;<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 an 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>Section</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 <para>
61 Use of deeply nested <sgmltag>Section</sgmltag>s may cause problems
62 in some processing systems.
63 </para>
64 </refsect2>
65
66
67 &section.parents.gen;
68 &section.children.gen;
69 </refsect1>
70 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
71 <variablelist>
72 <varlistentry><term>label</term>
73 <listitem>
74 <para>
75 <sgmltag class="attribute">Label</sgmltag> specifies an identifying string for presentation purposes.
76 </para>
77 <para>
78 Generally, an explicit <sgmltag class="attribute">Label</sgmltag> attribute is
79 used only if the processing system is incapable of generating the label
80 automatically. If present, the <sgmltag class="attribute">Label</sgmltag>
81 is normative; it will used even
82 if the processing system is capable of automatic labelling.
83 </para>
84 </listitem>
85 </varlistentry>
86 <varlistentry><term>status</term>
87 <listitem>
88 <para>
89 <sgmltag class="attribute">Status</sgmltag> identifies the editorial or publication
90 status of the <sgmltag>Section</sgmltag>.
91 </para>
92 <para>
93 Publication status might be used to control formatting (for example,
94 printing a <quote>draft</quote> watermark on drafts) or processing (perhaps
95 a document with a status of <quote>final</quote> should not include any
96 components that are not final).
97 </para>
98 </listitem>
99 </varlistentry>
100 </variablelist>
101 </refsect1>
102 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
103 &section.seealso.gen;
104 </refsect1>
105 <refsect1><title>Examples</title>
106
107 <informalexample role="example-source">
108 <programlisting>&section.example.1.txt;</programlisting>
109 </informalexample>
110
111 &section.example.seealso.gen;
112 </refsect1>
113 </refentry>
114