]> granicus.if.org Git - docbook-dsssl/commitdiff
Added missing xsl:choose in example.
authorMauritz Jeanson <mj@johanneberg.com>
Sat, 20 Mar 2010 11:08:37 +0000 (11:08 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sat, 20 Mar 2010 11:08:37 +0000 (11:08 +0000)
xsl/params/toc.line.properties.xml

index 6fd6b178edba7633d5e294e85dcfd246a8089297..0886fa45b6b951a054f7662e724494ebf03febbc 100644 (file)
@@ -10,7 +10,7 @@
 </refmeta>
 <refnamediv>
 <refname>toc.line.properties</refname>
-<refpurpose>Properties for lines in ToC and LoTs</refpurpose>
+<refpurpose>Properties for lines in ToCs and LoTs</refpurpose>
 </refnamediv>
 
 <refsynopsisdiv>
 
 <para>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 in bold specify the
-following in your customization layer.</para>
+example, in order to make lines for chapters bold, specify the
+following in your customization layer:</para>
 
 <programlisting>&lt;xsl:attribute-set name="toc.line.properties"&gt;
   &lt;xsl:attribute name="font-weight"&gt;
-    &lt;xsl:when test="self::chapter | self::preface | self::appendix"&gt;bold&lt;/xsl:when&gt;
+   &lt;xsl:choose>
+    &lt;xsl:when test="self::chapter">bold&lt;/xsl:when&gt;
     &lt;xsl:otherwise&gt;normal&lt;/xsl:otherwise&gt;
+   &lt;/xsl:choose>
   &lt;/xsl:attribute&gt;
 &lt;/xsl:attribute-set&gt;</programlisting>