]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Do per-chapter chunking for the html output.
authorJulian Seward <jseward@acm.org>
Wed, 3 Aug 2005 16:39:08 +0000 (16:39 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 3 Aug 2005 16:39:08 +0000 (16:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4310

docs/lib/vg-html-chunk.xsl

index 66537c0e1eeb3349e0595c59ece20b1f516a50c7..137d5ba9e38f0913d8ce758010c06c5ab1613400 100644 (file)
@@ -15,6 +15,8 @@
 <xsl:param name="chunker.output.indent" select="'yes'"/>
 <!-- use our custom html stylesheet -->
 <xsl:param name="html.stylesheet" select="'vg_basic.css'"/>
+<!-- set chunking at the chapter level only -->
+<xsl:param name="chunk.section.depth" select="'0'"/> 
 
 <!-- use our custom header -->
 <xsl:template name="header.navigation">
         <xsl:apply-templates select="$up" mode="object.title.markup"/>
        </xsl:when>
        <xsl:otherwise>
-        <xsl:text>Valgrind User's Manual</xsl:text>
+        <xsl:text>Valgrind User`s Manual</xsl:text>
        </xsl:otherwise>
       </xsl:choose>
 -->
                                     or count($next) &gt; 0"/>
 
   <xsl:variable name="row2" select="($prev != 0)
-                                    or (generate-id($home) != generate-id(.)
-                                        or $nav.context = 'toc')
-                                    or ($chunk.tocs.and.lots != 0
-                                        and $nav.context != 'toc')
-                                    or ($next != 0)"/>
+             or (generate-id($home) != generate-id(.) or $nav.context = 'toc')
+             or ($chunk.tocs.and.lots != 0 and $nav.context != 'toc')
+             or ($next != 0)"/>
   <div>
   <xsl:if test="$row1 or $row2">
    <br />
  </div>
 </xsl:template>
 
-<!-- We don't like tables with borders -->
+<!-- We don`t like tables with borders -->
 <xsl:template match="revhistory" mode="titlepage.mode">
   <xsl:variable name="numcols">
     <xsl:choose>
   </table>
 </xsl:template>
 
-<!-- don't put an expanded set-level TOC, only book titles -->
+<!-- don`t put an expanded set-level TOC, only book titles -->
 <xsl:template match="book" mode="toc">
   <xsl:param name="toc-context" select="."/>
   <xsl:choose>