Next in thread → Next in month →

Re: [docbook-apps] Removing document title from top of TOC

From
Bob Stayton <>
Date
2005-10-20T23:11:53+00:00
ID
00df01c5d5cb$a3b6f100$2101a8c0@toshiro
Thread
Re: [docbook-apps] Removing document title from top of TOC
Ah, I didn't catch that you set $chunk.tocs.and.lots to 1 and are generating
a separate chunk for your TOC.  I thought you meant the document title above
the TOC in index.html.

Unfortunately, it appears that this h1 title is produced inside a big
template named 'make.lots' in the html/chunk-code.xsl stylesheet module.
You would have to copy that template to your customization, find this part:

      <xsl:when test="$chunk.tocs.and.lots != 0 and not(parent::*)">
        <xsl:call-template name="write.chunk">

and inside that xsl:when statement is where the h1 title is coded.  You
would remove these lines:

                <h1>
                  <xsl:apply-templates select="."
mode="object.title.markup"/>
                </h1>


Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Bob Stayton" <>
To: "Peter Desjardins" <>;
<>
Sent: Thursday, October 20, 2005 11:32 AM
Subject: Re: [docbook-apps] Removing document title from top of TOC


> The titlepage spec mechanism is designed to give you control over the
title
> pages in your document.  Did you try removing the title for your element
> from the titlepage spec file and regenerating the titlepage templates?
That
> should work.
>
> http://www.sagehill.net/docbookxsl/HTMLTitlePage.html
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> 
>
>
> ----- Original Message ----- 
> From: "Peter Desjardins" <>
> To: <>
> Sent: Tuesday, October 18, 2005 1:24 PM
> Subject: [docbook-apps] Removing document title from top of TOC
>
>
> I am formatting my DocBook source as chunked HTML which is displayed in
> a frameset.  I want to remove the <h1> document title from the top of
> the table of contents chunk.  The title appears elsewhere in the
> frameset and it takes up valuable space in the TOC frame.
>
> I am fairly sure I need to add this to my customization layer but I am
> not comfortable enough with the XSLT to find exactly what to put there.
> Can anyone point me to the XSL file and particular code that adds the
> document title to the top of the TOC?  I can't find this specific
> customization covered in the archives and I can't quite make the leap
> from the TOC customizations that are described.
>
> I use Release 1.69.1 of the DocBook XSL stylesheets and Saxon.  The OS
> is Windows XP.
>
> Thanks for your help.
>
> Peter Desjardins
> SupplyScape Corporation
> http://www.supplyscape.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →