Next in thread → Next in month →

Re: [docbook-apps] How to make refentries show up in the TOC

From
Markus Hoenicka <>
Date
2005-12-03T17:15:13+00:00
ID
Thread
Re: [docbook-apps] How to make refentries show up in the TOC
Stephen Langer writes:
 > Does that help?  I don't get the refentries listed in the top level  
 > toc, but I don't want them there.

Not exactly, except that it convinced me that I'd have to use a
customization instead of just setting a parameter. Turns out that I
have to use this (for all sectX that contain refentries):

<xsl:template match="sect1" mode="toc">
  <xsl:param name="toc-context" select="."/>
  <xsl:call-template name="subtoc">
    <xsl:with-param name="toc-context" select="$toc-context"/>
    <xsl:with-param name="nodes" select="sect2|refentry                                          |bridgehead[$bridgehead.in.toc != 0]"/>
  </xsl:call-template>
</xsl:template>

Note the additional refentry when selecting the node list.

thanks anyway,
Markus

-- 
Markus Hoenicka

(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de
Next in thread → Next in month →