|
From: <sv...@va...> - 2005-08-03 16:39:10
|
Author: sewardj
Date: 2005-08-03 17:39:08 +0100 (Wed, 03 Aug 2005)
New Revision: 4310
Log:
Do per-chapter chunking for the html output.
Modified:
trunk/docs/lib/vg-html-chunk.xsl
Modified: trunk/docs/lib/vg-html-chunk.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/docs/lib/vg-html-chunk.xsl 2005-08-02 23:07:02 UTC (rev 4309)
+++ trunk/docs/lib/vg-html-chunk.xsl 2005-08-03 16:39:08 UTC (rev 4310)
@@ -15,6 +15,8 @@
<xsl:param name=3D"chunker.output.indent" select=3D"'yes'"/>
<!-- use our custom html stylesheet -->
<xsl:param name=3D"html.stylesheet" select=3D"'vg_basic.css'"/>
+<!-- set chunking at the chapter level only -->
+<xsl:param name=3D"chunk.section.depth" select=3D"'0'"/>=20
=20
<!-- use our custom header -->
<xsl:template name=3D"header.navigation">
@@ -104,7 +106,7 @@
<xsl:apply-templates select=3D"$up" mode=3D"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>
-->
@@ -151,11 +153,9 @@
or count($next) > 0"/>
=20
<xsl:variable name=3D"row2" select=3D"($prev !=3D 0)
- or (generate-id($home) !=3D generate=
-id(.)
- or $nav.context =3D 'toc')
- or ($chunk.tocs.and.lots !=3D 0
- and $nav.context !=3D 'toc')
- or ($next !=3D 0)"/>
+ or (generate-id($home) !=3D generate-id(.) or $nav.context =
=3D 'toc')
+ or ($chunk.tocs.and.lots !=3D 0 and $nav.context !=3D 'toc'=
)
+ or ($next !=3D 0)"/>
<div>
<xsl:if test=3D"$row1 or $row2">
<br />
@@ -251,7 +251,7 @@
</div>
</xsl:template>
=20
-<!-- We don't like tables with borders -->
+<!-- We don`t like tables with borders -->
<xsl:template match=3D"revhistory" mode=3D"titlepage.mode">
<xsl:variable name=3D"numcols">
<xsl:choose>
@@ -271,7 +271,7 @@
</table>
</xsl:template>
=20
-<!-- 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=3D"book" mode=3D"toc">
<xsl:param name=3D"toc-context" select=3D"."/>
<xsl:choose>
|