Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 9f452694b2d23dacae7f9cc757f9be50 > files > 414

docbook-style-xsl-1.78.1-1.fc17.noarch.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>toc.line.properties</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference Documentation"><link rel="up" href="toc_index.html" title="ToC/LoT/Index Generation"><link rel="prev" href="toc.indent.width.html" title="toc.indent.width"><link rel="next" href="toc.margin.properties.html" title="toc.margin.properties"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">toc.line.properties</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="toc.indent.width.html">Prev</a> </td><th width="60%" align="center">ToC/LoT/Index Generation</th><td width="20%" align="right"> <a accesskey="n" href="toc.margin.properties.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="toc.line.properties"></a><div class="titlepage"></div>

<div class="refnamediv"><h2><span class="refentrytitle">toc.line.properties</span></h2><p>
toc.line.properties
 &#8212; Properties for lines in ToCs and LoTs
</p></div>

<div class="refsynopsisdiv"><h2>Synopsis</h2>
<a name="toc.line.properties.frag"></a><pre class="programlisting">
&lt;xsl:attribute-set name="toc.line.properties"&gt;
  &lt;xsl:attribute name="text-align-last"&gt;justify&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="text-align"&gt;start&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="end-indent"&gt;&lt;xsl:value-of select="concat($toc.indent.width, 'pt')"&gt;&lt;/xsl:value-of&gt;&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="last-line-end-indent"&gt;&lt;xsl:value-of select="concat('-', $toc.indent.width, 'pt')"&gt;&lt;/xsl:value-of&gt;&lt;/xsl:attribute&gt;
&lt;/xsl:attribute-set&gt;
</pre>
</div>

<div class="refsection"><a name="idp3695840"></a><h2>Description</h2>

<p>Properties which are applied to every line in ToC (or LoT). You can
modify them in order to change appearance of all, or some lines. For
example, in order to make lines for chapters bold, specify the
following in your customization layer:</p>

<pre class="programlisting">&lt;xsl:attribute-set name="toc.line.properties"&gt;
  &lt;xsl:attribute name="font-weight"&gt;
   &lt;xsl:choose&gt;
    &lt;xsl:when test="self::chapter"&gt;bold&lt;/xsl:when&gt;
    &lt;xsl:otherwise&gt;normal&lt;/xsl:otherwise&gt;
   &lt;/xsl:choose&gt;
  &lt;/xsl:attribute&gt;
&lt;/xsl:attribute-set&gt;</pre>

</div>
</div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="toc.indent.width.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="toc_index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="toc.margin.properties.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">toc.indent.width </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> toc.margin.properties</td></tr></table></div></body></html>