]> granicus.if.org Git - docbook-dsssl/commitdiff
Added empty component.toc.separator and section.toc.separator templates
authorBob Stayton <bobs@sagehill.net>
Wed, 4 Dec 2002 10:13:06 +0000 (10:13 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 4 Dec 2002 10:13:06 +0000 (10:13 +0000)
to provide customization opportunity between toc and first content.

xsl/fo/autotoc.xsl
xsl/fo/component.xsl
xsl/fo/sections.xsl

index 3b1a40fea7427cd583c1eac648b32415a4f89a88..f359f5edea910b9b0fa85e8d5e5cb53c1d68158b 100644 (file)
   </xsl:if>
 </xsl:template>
 
+<xsl:template name="component.toc.separator">
+  <!-- Customize to output something between
+       component.toc and first output -->
+</xsl:template>
+
 <xsl:template name="section.toc">
   <xsl:param name="toc-context" select="."/>
   <xsl:param name="toc.title.p" select="true()"/>
   </xsl:if>
 </xsl:template>
 
+<xsl:template name="section.toc.separator">
+  <!-- Customize to output something between
+       section.toc and first output -->
+</xsl:template>
 <!-- ==================================================================== -->
 
 <xsl:template name="toc.line">
index 51c00c71f986f1c7b10ce66448326300faadfc61..1f38e67c2c9acc331f9111622458211e96237516 100644 (file)
       </xsl:variable>
       <xsl:if test="contains($toc.params, 'toc')">
         <xsl:call-template name="component.toc"/>
+        <xsl:call-template name="component.toc.separator"/>
       </xsl:if>
 
       <xsl:apply-templates/>
       </xsl:variable>
       <xsl:if test="contains($toc.params, 'toc')">
         <xsl:call-template name="component.toc"/>
+        <xsl:call-template name="component.toc.separator"/>
       </xsl:if>
       <xsl:apply-templates/>
     </fo:flow>
       </xsl:variable>
       <xsl:if test="contains($toc.params, 'toc')">
         <xsl:call-template name="component.toc"/>
+        <xsl:call-template name="component.toc.separator"/>
       </xsl:if>
       <xsl:apply-templates/>
     </fo:flow>
       </xsl:variable>
       <xsl:if test="contains($toc.params, 'toc')">
         <xsl:call-template name="component.toc"/>
+        <xsl:call-template name="component.toc.separator"/>
       </xsl:if>
       <xsl:apply-templates/>
     </fo:flow>
index 8605027559ce29b728e13a932cb2bb5d7cb3944a..4df1f32562801f9152a22d611ccea4269e6512f4 100644 (file)
@@ -35,6 +35,7 @@
       <xsl:call-template name="section.toc">
         <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
       </xsl:call-template>
+     <xsl:call-template name="section.toc.separator"/>
     </xsl:if>
 
     <xsl:apply-templates/>
@@ -84,6 +85,7 @@
                      and (count(ancestor::section)+1) &lt;= $generate.section.toc.level)
                     or refentry">
         <xsl:call-template name="section.toc"/>
+        <xsl:call-template name="section.toc.separator"/>
       </xsl:if>
 
       <xsl:apply-templates/>
                    and ($generate.section.toc.level &gt;= 1))
                   or refentry">
       <xsl:call-template name="section.toc"/>
+      <xsl:call-template name="section.toc.separator"/>
     </xsl:if>
 
     <xsl:apply-templates/>
                      and ($generate.section.toc.level &gt;= 1))
                     or refentry">
         <xsl:call-template name="section.toc"/>
+        <xsl:call-template name="section.toc.separator"/>
       </xsl:if>
 
       <xsl:apply-templates/>
                    and ($generate.section.toc.level &gt;= 2))
                   or refentry">
       <xsl:call-template name="section.toc"/>
+      <xsl:call-template name="section.toc.separator"/>
     </xsl:if>
 
     <xsl:apply-templates/>
                    and ($generate.section.toc.level &gt;= 3))
                   or refentry">
       <xsl:call-template name="section.toc"/>
+      <xsl:call-template name="section.toc.separator"/>
     </xsl:if>
 
     <xsl:apply-templates/>
                    and ($generate.section.toc.level &gt;= 4))
                   or refentry">
       <xsl:call-template name="section.toc"/>
+      <xsl:call-template name="section.toc.separator"/>
     </xsl:if>
 
     <xsl:apply-templates/>
                    and ($generate.section.toc.level &gt;= 5))
                   or refentry">
       <xsl:call-template name="section.toc"/>
+      <xsl:call-template name="section.toc.separator"/>
     </xsl:if>
 
     <xsl:apply-templates/>