| 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: | 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.
Bob Stayton Sagehill Enterprises bo...@sagehill.net
----- 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?
-- View this message in context: http://old.nabble.com/Section-TOCs-in-HTML%3A-Placing-after-intro-text-tp32317596p32317596.html Sent from the docbook apps mailing list archive at Nabble.com.





