******************************************************************** -->
-<xsl:param name="autotoc.label.separator" select="' '"/>
+<xsl:param name="autotoc.label.separator" select="'. '"/>
<xsl:template name="href.target">
<xsl:param name="object" select="."/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<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:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:variable>
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
<xsl:template match="bridgehead" mode="toc">
<xsl:if test="$bridgehead.in.toc != 0">
<xsl:element name="{$toc.listitem.type}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:value-of select="$autotoc.label.separator"/>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
<a>
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>