From: Norman Walsh Date: Wed, 1 Jan 2003 21:18:26 +0000 (+0000) Subject: Support List of Procedures X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0323e15a8cd5f27378d5784e9e07c612bb4a831;p=docbook-dsssl Support List of Procedures --- diff --git a/xsl/fo/division.xsl b/xsl/fo/division.xsl index 892393bd4..a9b9ca20c 100644 --- a/xsl/fo/division.xsl +++ b/xsl/fo/division.xsl @@ -371,6 +371,41 @@ + + + + + + + + + + + + auto-odd + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/titlepage.templates.xml b/xsl/fo/titlepage.templates.xml index ce4626b1f..0b61fc4cf 100644 --- a/xsl/fo/titlepage.templates.xml +++ b/xsl/fo/titlepage.templates.xml @@ -1032,6 +1032,35 @@ + + + + </t:titlepage-content> + + <t:titlepage-content side="verso"> + </t:titlepage-content> + + <t:titlepage-separator> + </t:titlepage-separator> + + <t:titlepage-before side="recto"> + </t:titlepage-before> + + <t:titlepage-before side="verso"> + </t:titlepage-before> + </t:titlepage> + <t:titlepage element="list.of.unknowns" wrapper="fo:block"> <t:titlepage-content side="recto"> <title diff --git a/xsl/fo/titlepage.xsl b/xsl/fo/titlepage.xsl index 0a512987c..b09d342b8 100644 --- a/xsl/fo/titlepage.xsl +++ b/xsl/fo/titlepage.xsl @@ -149,6 +149,9 @@ <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/> <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/> +<xsl:attribute-set name="list.of.procedures.titlepage.recto.style"/> +<xsl:attribute-set name="list.of.procedures.contents.titlepage.verso.style"/> + <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/> <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/> diff --git a/xsl/html/autotoc.xsl b/xsl/html/autotoc.xsl index 3c7d71a0b..820e7e61b 100644 --- a/xsl/html/autotoc.xsl +++ b/xsl/html/autotoc.xsl @@ -112,6 +112,13 @@ <xsl:with-param name="nodes" select=".//equation[title]"/> </xsl:call-template> </xsl:if> + + <xsl:if test="contains($toc.params, 'procedure')"> + <xsl:call-template name="list.of.titles"> + <xsl:with-param name="titles" select="'procedure'"/> + <xsl:with-param name="nodes" select=".//procedure[title]"/> + </xsl:call-template> + </xsl:if> </xsl:template> <!-- ====================================================================== --> @@ -498,7 +505,8 @@ <xsl:when test="$titles='figure'">ListofFigures</xsl:when> <xsl:when test="$titles='equation'">ListofEquations</xsl:when> <xsl:when test="$titles='example'">ListofExamples</xsl:when> - <xsl:otherwise>ListofUnknowns</xsl:otherwise> + <xsl:when test="$titles='procedure'">ListofProcedures</xsl:when> + <xsl:otherwise>ListofUnknown</xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> @@ -514,7 +522,7 @@ </xsl:if> </xsl:template> -<xsl:template match="figure|table|example|equation" mode="toc"> +<xsl:template match="figure|table|example|equation|procedure" mode="toc"> <xsl:param name="toc-context" select="."/> <xsl:element name="{$toc.listitem.type}">