| From | Sent On | Attachments |
|---|---|---|
| mike 675 | Aug 23, 2011 2:52 am | |
| Bob Stayton | Aug 23, 2011 3:16 pm | |
| mike 675 | Aug 24, 2011 4:21 am | |
| Bob Stayton | Aug 24, 2011 9:18 am | |
| mike 675 | Sep 2, 2011 6:29 am | |
| mike 675 | Sep 2, 2011 12:07 pm | |
| Bob Stayton | Sep 2, 2011 1:16 pm | |
| michael mclaughlin | Sep 2, 2011 2:12 pm | |
| mike 675 | Sep 5, 2011 6:52 am | |
| David Cramer | Sep 5, 2011 7:55 am | |
| mike 675 | Sep 5, 2011 8:26 am | |
| mike 675 | Sep 5, 2011 8:33 am | |
| Bob Stayton | Sep 5, 2011 8:55 am | |
| mike 675 | Sep 5, 2011 10:07 am | |
| mike 675 | Oct 6, 2011 1:18 am | |
| mike 675 | Oct 6, 2011 1:19 am | |
| mike 675 | Oct 6, 2011 5:10 am |
| Subject: | Re: [docbook-apps] Section TOCs in HTML: Placing after intro text | |
|---|---|---|
| From: | mike 675 (m_mc...@yahoo.co.uk) | |
| Date: | Oct 6, 2011 1:18:21 am | |
| List: | org.oasis-open.lists.docbook-apps | |
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 bo...@sagehill.net
----- Original Message ----- From: "mike 675" <m_mc...@yahoo.co.uk> To: <docb...@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.
--
View this message in context:
http://old.nabble.com/Section-TOCs-in-HTML%3A-Placing-after-intro-text-tp32317596p32599843.html
Sent from the docbook apps mailing list archive at Nabble.com.





