> Did you try to add <xsl:if
test="local-name()!='index'"> in
> <template name="toc.line">?
> This should work.
> Ludger
Thanks. I added the following and it seems to have worked.
Is this
what you meant? I'm an XSL novice.
<xsl:template name="toc.line">
<xsl:param name="toc-context"
select="."/>
<xsl:param name="depth"
select="1"/>
<xsl:param name="depth.from.context"
select="8"/>
<span>
<xsl:if test="local-name()!='index'">
<xsl:attribute
name="class"><xsl:value-of
select="local-name(.)"/></xsl:attribute>
;
<a>
<xsl:attribute name="href">
<xsl:call-template
name="href.target">
<xsl:with-param name="context"
select="$toc-context"/>
</xsl:call-template>
</xsl:attribute>
<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>
<xsl:apply-templates select="."
mode="titleabbrev.markup"/>
</a>
</xsl:if>
</span>
</xsl:template>
Peter Desjardins
SupplyScape Corporation
http://www.supplyscape.com
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|