]> git.stg.codes - stg.git/blob - doc/xslt/params/component.title.properties.xml
Help book chapter 2 complete
[stg.git] / doc / xslt / params / component.title.properties.xml
1 <refentry xmlns="http://docbook.org/ns/docbook"
2           xmlns:xlink="http://www.w3.org/1999/xlink"
3           xmlns:xi="http://www.w3.org/2001/XInclude"
4           xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6           version="5.0" xml:id="component.title.properties">
7 <refmeta>
8 <refentrytitle>component.title.properties</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
10 </refmeta>
11 <refnamediv>
12 <refname>component.title.properties</refname>
13 <refpurpose>Properties for component titles</refpurpose>
14 </refnamediv>
15
16 <refsynopsisdiv>
17 <src:fragment xml:id="component.title.properties.frag">
18 <xsl:attribute-set name="component.title.properties">
19   <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
20   <xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
21   <xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt * 0.8')"/></xsl:attribute>
22   <xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt * 1.2')"/></xsl:attribute>
23   <xsl:attribute name="hyphenate">false</xsl:attribute>
24   <xsl:attribute name="text-align">
25     <xsl:choose>
26       <xsl:when test="((parent::article | parent::articleinfo | parent::info/parent::article) and not(ancestor::book) and not(self::bibliography))         or (parent::slides | parent::slidesinfo)">center</xsl:when>
27       <xsl:otherwise>start</xsl:otherwise>
28     </xsl:choose>
29   </xsl:attribute>
30   <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
31 </xsl:attribute-set>
32 </src:fragment>
33 </refsynopsisdiv>
34
35 <refsection><info><title>Description</title></info>
36
37 <para>The properties common to all component titles.</para>
38
39 </refsection>
40 </refentry>