]> granicus.if.org Git - docbook-dsssl/commitdiff
Make the TOC label/title separator a parameter
authorNorman Walsh <ndw@nwalsh.com>
Mon, 21 May 2001 17:16:35 +0000 (17:16 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 21 May 2001 17:16:35 +0000 (17:16 +0000)
xsl/html/autotoc.xsl

index 429d810ec9d53017e3fd200efa7823dccf578ed4..0b365d985328f1b29ddeaa1918c5f1dcdac13089 100644 (file)
@@ -12,6 +12,8 @@
 
      ******************************************************************** -->
 
+<xsl:param name="autotoc.label.separator" select="' '"/>
+
 <xsl:template name="href.target">
   <xsl:param name="object" select="."/>
   <xsl:text>#</xsl:text>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 <xsl:template match="sect5" mode="toc">
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
 
   <xsl:element name="{$toc.listitem.type}">
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:value-of select="$autotoc.label.separator"/>
     <a>
       <xsl:attribute name="href">
         <xsl:call-template name="href.target"/>
   <xsl:if test="$bridgehead.in.toc != 0">
     <xsl:element name="{$toc.listitem.type}">
       <xsl:apply-templates select="." mode="label.markup"/>
-      <xsl:text> </xsl:text>
+      <xsl:value-of select="$autotoc.label.separator"/>
       <a>
         <xsl:attribute name="href">
           <xsl:call-template name="href.target"/>