OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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"/>

  <xsl:if test="local-name()!='index'">
  <xsl:attribute name="class"><xsl:value-of
    <xsl:attribute name="href">
      <xsl:call-template name="href.target">
        <xsl:with-param name="context" select="$toc-context"/>
    <xsl:variable name="label">
      <xsl:apply-templates select="." mode="label.markup"/>
    <xsl:copy-of select="$label"/>
    <xsl:if test="$label != ''">
      <xsl:value-of select="$autotoc.label.separator"/>

    <xsl:apply-templates select="." mode="titleabbrev.markup"/>

Peter Desjardins
SupplyScape Corporation

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]