[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Removing the index from the TOC
> 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]