]> git.evergreen-ils.org Git - working/Evergreen.git/blob - stylesheets/styleguide/docbook-xsl-1.75.2/params/toc.line.properties.xml
stylesheet changes.
[working/Evergreen.git] / stylesheets / styleguide / docbook-xsl-1.75.2 / params / toc.line.properties.xml
1 <refentry xmlns="http://docbook.org/ns/docbook"\r
2           xmlns:xlink="http://www.w3.org/1999/xlink"\r
3           xmlns:xi="http://www.w3.org/2001/XInclude"\r
4           xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"\r
5           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
6           version="5.0" xml:id="toc.line.properties">\r
7 <refmeta>\r
8 <refentrytitle>toc.line.properties</refentrytitle>\r
9 <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>\r
10 </refmeta>\r
11 <refnamediv>\r
12 <refname>toc.line.properties</refname>\r
13 <refpurpose>Properties for lines in ToC and LoTs</refpurpose>\r
14 </refnamediv>\r
15 \r
16 <refsynopsisdiv>\r
17 <src:fragment xml:id="toc.line.properties.frag">\r
18 <xsl:attribute-set name="toc.line.properties">\r
19   <xsl:attribute name="text-align-last">justify</xsl:attribute>\r
20   <xsl:attribute name="text-align">start</xsl:attribute>\r
21   <xsl:attribute name="end-indent"><xsl:value-of select="concat($toc.indent.width, 'pt')"/></xsl:attribute>\r
22   <xsl:attribute name="last-line-end-indent"><xsl:value-of select="concat('-', $toc.indent.width, 'pt')"/></xsl:attribute>\r
23 </xsl:attribute-set>\r
24 </src:fragment>\r
25 </refsynopsisdiv>\r
26 \r
27 <refsection><info><title>Description</title></info>\r
28 \r
29 <para>Properties which are applied to every line in ToC (or LoT). You can\r
30 modify them in order to change appearance of all, or some lines. For\r
31 example in order to make lines for chapters in bold specify the\r
32 following in your customization layer.</para>\r
33 \r
34 <programlisting>&lt;xsl:attribute-set name="toc.line.properties"&gt;\r
35   &lt;xsl:attribute name="font-weight"&gt;\r
36     &lt;xsl:when test="self::chapter | self::preface | self::appendix"&gt;bold&lt;/xsl:when&gt;\r
37     &lt;xsl:otherwise&gt;normal&lt;/xsl:otherwise&gt;\r
38   &lt;/xsl:attribute&gt;\r
39 &lt;/xsl:attribute-set&gt;</programlisting>\r
40 \r
41 </refsection>\r
42 </refentry>\r