← Prev in month ← Prev in thread

Re: [docbook-apps] Re: examples and toc

From
Jirka Kosek <>
Date
2008-06-01T19:49:16+00:00
ID
Thread
Re: [docbook-apps] Re: examples and toc
Sam Steingold wrote:

> still no loe:
> http://clisp.podval.org/impnotes/dffi.html

Sorry, I forgot that section ToCs are handled differently then book/set 
ToCs. Try the following hack:

<xsl:template name="section.toc">
   <xsl:param name="toc-context" select="."/>
   <xsl:param name="toc.title.p" select="true()"/>

   <xsl:call-template name="make.toc">
     <xsl:with-param name="toc-context" select="$toc-context"/>
     <xsl:with-param name="toc.title.p" select="$toc.title.p"/>
     <xsl:param name="toc.params" select="'toc example'"/>
     <xsl:with-param name="nodes"
                     select="section|sect1|sect2|sect3|sect4|sect5|refentry
                            |bridgehead[$bridgehead.in.toc != 0]"/>

   </xsl:call-template>
</xsl:template>




-- 
------------------------------------------------------------------
   Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
        Professional XML consulting and training services
   DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
  OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
← Prev in month ← Prev in thread