OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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


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
bobs@sagehill.net


----- Original Message ----- 
From: "mike 675" <m_mclaug@yahoo.co.uk>
To: <docbook-apps@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.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]