]> granicus.if.org Git - docbook-dsssl/commitdiff
Support List of Procedures
authorNorman Walsh <ndw@nwalsh.com>
Wed, 1 Jan 2003 21:18:26 +0000 (21:18 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 1 Jan 2003 21:18:26 +0000 (21:18 +0000)
xsl/fo/division.xsl
xsl/fo/titlepage.templates.xml
xsl/fo/titlepage.xsl
xsl/html/autotoc.xsl

index 892393bd4ef8eb5225a4b3bb4a23caf206d6e87a..a9b9ca20c357b23fbff8b60bab8a9388e0563b20 100644 (file)
     </fo:page-sequence>
   </xsl:if>
 
+  <xsl:if test="contains($toc.params,'procedure') and .//procedure">
+    <fo:page-sequence hyphenate="{$hyphenate}"
+                      format="i"
+                      master-reference="{$lot-master-reference}">
+      <xsl:attribute name="language">
+        <xsl:call-template name="l10n.language"/>
+      </xsl:attribute>
+      <xsl:attribute name="format">
+        <xsl:call-template name="page.number.format">
+          <xsl:with-param name="element" select="'toc'"/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:if test="$double.sided != 0">
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:if>
+
+      <xsl:apply-templates select="." mode="running.head.mode">
+        <xsl:with-param name="master-reference" select="$lot-master-reference"/>
+        <xsl:with-param name="gentext-key" select="'ListofProcedures'"/>
+      </xsl:apply-templates>
+
+      <xsl:apply-templates select="." mode="running.foot.mode">
+        <xsl:with-param name="master-reference" select="$lot-master-reference"/>
+        <xsl:with-param name="gentext-key" select="'ListofProcedures'"/>
+      </xsl:apply-templates>
+
+      <fo:flow flow-name="xsl-region-body">
+        <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>
+      </fo:flow>
+    </fo:page-sequence>
+  </xsl:if>
+
   <xsl:apply-templates select="$content"/>
 </xsl:template>
 
index ce4626b1fa2dd66cede815143ee23e1f5746ea87..0b61fc4cf8e0ac8cd36821106f1a774ca895cec8 100644 (file)
     </t:titlepage-before>
   </t:titlepage>
 
+  <t:titlepage element="list.of.procedures" wrapper="fo:block">
+    <t:titlepage-content side="recto">
+      <title
+            force="1"
+            named-template="gentext"
+            param:key="'ListofProcedures'"
+             fo:space-before.minimum="1em"
+             fo:space-before.optimum="1.5em"
+             fo:space-before.maximum="2em"
+            fo:space-after="0.5em"
+            fo:margin-left="{$title.margin.left}"
+            fo:font-size="&hsize3;"
+            fo:font-weight="bold"
+            fo:font-family="{$title.font.family}"/>
+    </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
index 0a512987c7ca49690673ca2c20f27165a195abc6..b09d342b8f0dd54e4e74740ca28236cf30ea5d06 100644 (file)
 <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"/>
 
index 3c7d71a0b9257841779bbd95aa4a2b529a20b91f..820e7e61b0dde33fe64602f8bc074561c7ff41c7 100644 (file)
       <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>
 
 <!-- ====================================================================== -->
                 <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>
   </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}">