summaryrefslogtreecommitdiffstats
path: root/kdoctools/docbook/xsl/params/section.level2.properties.xml
blob: 15af8aaba1bbcdd0842e389c8c9a75cfbde625ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<refentry id="section.level2.properties">
<refmeta>
<refentrytitle>section.level2.properties</refentrytitle>
<refmiscinfo role="type">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>section.level2.properties</refname>
<refpurpose>Properties for level-2 sections</refpurpose>
</refnamediv>

<refsynopsisdiv>
<src:fragment id='section.level2.properties.frag'>
<xsl:attribute-set name="section.level2.properties"
                   use-attribute-sets="section.properties">
</xsl:attribute-set>
</src:fragment>
</refsynopsisdiv>

<refsect1><title>Description</title>

<para>The properties that apply to the containing
block of a level-2 section, and therefore apply to
the whole section.  This includes <sgmltag>sect2</sgmltag>
elements and <sgmltag>section</sgmltag> elements at level 2.
</para>

<para>For example, you could start each level-2 section on
a new page by using:</para>
<programlisting>&lt;xsl:attribute-set name="section.level2.properties"&gt;
  &lt;xsl:attribute name="break-before"&gt;page&lt;/xsl:attribute&gt;
&lt;/xsl:attribute-set&gt;
</programlisting>

<para>This attribute set inherits attributes from the
general <sgmltag>section.properties</sgmltag> attribute set.
</para>

</refsect1>
</refentry>