atom feed17 messages in org.oasis-open.lists.docbook-appsRe: [docbook-apps] Section TOCs in HT...
FromSent OnAttachments
mike 675Aug 23, 2011 2:52 am 
Bob StaytonAug 23, 2011 3:16 pm 
mike 675Aug 24, 2011 4:21 am 
Bob StaytonAug 24, 2011 9:18 am 
mike 675Sep 2, 2011 6:29 am 
mike 675Sep 2, 2011 12:07 pm 
Bob StaytonSep 2, 2011 1:16 pm 
michael mclaughlinSep 2, 2011 2:12 pm 
mike 675Sep 5, 2011 6:52 am 
David CramerSep 5, 2011 7:55 am 
mike 675Sep 5, 2011 8:26 am 
mike 675Sep 5, 2011 8:33 am 
Bob StaytonSep 5, 2011 8:55 am 
mike 675Sep 5, 2011 10:07 am 
mike 675Oct 6, 2011 1:18 am 
mike 675Oct 6, 2011 1:19 am 
mike 675Oct 6, 2011 5:10 am 
Subject:Re: [docbook-apps] Section TOCs in HTML: Placing after intro text
From:Bob Stayton (bo@sagehill.net)
Date:Aug 23, 2011 3:16:14 pm
List:org.oasis-open.lists.docbook-apps

Hi,

That one is easily supported by the stylesheets. You can put an empty <toc/>
element where you want the mini-toc to appear. Then you need to customize the
stylesheet param named 'generate.toc' to *remove* section from it, so it does not get an automatic TOC at the beginning of the section. Then you also need to set the stylesheet param 'process.empty.source.toc' to 1.

Of course, this requires adding the <toc/> elements where you want them to
appear. If you want this feature to be automatic, you'll need to customize the template
with match="section" from html/sections.xsl. You'll need to add an
xsl:apply-templates that selects everything before the first sub-section element, then process the
toc, and then another xsl:apply-templates that selects only section children.

----- Original Message ----- From: "mike 675" <m_mc@yahoo.co.uk> To: <docb@lists.oasis-open.org> Sent: Tuesday, August 23, 2011 2:52 AM Subject: [docbook-apps] Section TOCs in HTML: Placing after intro text

DocBook -> HTML using the DocBook XSL stylesheets.

At the top of every major section, we have a mini TOC in the HTML output. We want to retain this, but place the mini-TOC *after* any introductory text.

So we would get HTML output of the form:

2.1. Using the ABC Software This section includes the following topics about using using the ABC software:

[Mini -TOC]

Any ideas where I start with this?