[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Section TOCs in HTML: Placing after intro text
Correction. I tried this on my work computer and it is now working as expected. mike 675 wrote: > > I never got this to work for chapter-level TOCs. The section TOCs fix > worked well, intro text was rendered before the section TOC. > Here are the changes I made to the chapter template: > > <xsl:template match="chapter"> > <xsl:call-template name="id.warning"/> > > <div> > <xsl:call-template name="common.html.attributes"> > <xsl:with-param name="inherit" select="1"/> > </xsl:call-template> > <xsl:if test="$generate.id.attributes != 0"> > <xsl:attribute name="id"> > <xsl:call-template name="object.id"/> > </xsl:attribute> > </xsl:if> > > <xsl:call-template name="component.separator"/> > <xsl:call-template name="chapter.titlepage"/> > > <xsl:variable name="toc.params"> > <xsl:call-template name="find.path.params"> > <xsl:with-param name="table" > select="normalize-space($generate.toc)"/> > </xsl:call-template> > </xsl:variable> > > <!-- Get anything that isn't a section --> > <xsl:apply-templates select="node()[not(self::section)]"/> > > <!-- Create the chapter level TOC --> > <xsl:if test="contains($toc.params, 'toc')"> > <xsl:call-template name="component.toc"> > <xsl:with-param name="toc.title.p" select="contains($toc.params, > 'title')"/> > </xsl:call-template> > <xsl:call-template name="component.toc.separator"/> > </xsl:if> > > <!-- Process sections as normal --> > <xsl:apply-templates select="section"/> > <xsl:call-template name="process.footnotes"/> > </div> > </xsl:template> > > Using this code, the chapter TOC is still rendered before the intro text. > Any ideas on this? > > Mike > > > Bob Stayton wrote: >> >> Hi Mike, >> The same kind of changes that were made to the template matching on >> section can also >> be made to the template matching on chapter. That template can be copied >> to your >> customization layer from html/component.xsl. >> >> Bob Stayton >> Sagehill Enterprises >> bobs@sagehill.net >> >> >> ----- Original Message ----- >> From: "mike 675" <m_mclaug@yahoo.co.uk> >> To: <docbook-apps@lists.oasis-open.org> >> Sent: Monday, September 05, 2011 6:52 AM >> Subject: Re: [docbook-apps] Section TOCs in HTML: Placing after intro >> text >> >> >>> >>>>The fix works, apart from the top-level TOC in a chapter. This is still >>> placed before any intro text.< >>> >>> Any ideas how to extend Bob's fix so that chapter level TOCs are placed >>> after any introductory text? >>> >>> Thanks, >>> Mike >>> -- >>> View this message in context: >>> http://old.nabble.com/Section-TOCs-in-HTML%3A-Placing-after-intro-text-tp32317596p32401262.html >>> Sent from the docbook apps mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >> >> >> > > -- View this message in context: http://old.nabble.com/Section-TOCs-in-HTML%3A-Placing-after-intro-text-tp32317596p32600497.html Sent from the docbook apps mailing list archive at Nabble.com.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]