Re: [docbook-apps] Include subtitle in article toc

From
Bob Stayton <>
Date
2007-07-11T16:32:20+00:00
ID
004801c7c3d8$fbf8d750$6400a8c0@totoro
Thread
Re: [docbook-apps] Include subtitle in article toc
Each line in a TOC is generated using the template named toc.line from 
html/autotoc.xsl.  This line does the title:

<xsl:apply-templates select="." mode="titleabbrev.markup"/>

You could add a condition after that to test="self::article" and add the 
dash and a

<xsl:apply-templates select="." mode="subtitle.markup"/>

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Michael D. Cencula" <>
To: <>
Sent: Tuesday, July 10, 2007 7:06 PM
Subject: [docbook-apps] Include subtitle in article toc


> How can I create a stylesheet customization so that a section with
> <title>my title</title>
> <subtitle>my subtitle</subtitle>
>
> gets rendered in the html article TOC as
> my title - my subtitle
>
> Basically I'm trying to include the subtitle in the table of contents
> following the title and a hyphen.
>
> Thanks,
>
> Mike Cencula
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>