Hi,
There are some stylesheet parameters that control the placement of generated TOCs. In your case, you want to set the stylesheet parameter named generate.toc to empty to turn off the regular process, and set the parameter named process.empty.source.toc to 1. Then the normal toc will be gone and your empty <toc/> element should generate the book toc.

<xsl:param name="generate.toc"/>
<xsl:param name="process.empty.source.toc select="1"/>

Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]


----- Original Message ----- From: "Tero Koskinen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, May 03, 2007 9:09 AM
Subject: [docbook-apps] Placing table of contents after preface


Hi,

Is there a way to change the place of table of contents?

In my document, I would like to get sections in following order:
Title page
Abstract (in English)
Abstract (in Finnish)
Preface
Table of Contents
Introduction

However, just placing <toc/> after <preface>...</preface> doesn't
seem to work. Table of contents always goes right after the title page.

And I tried to use the 'pagenum' attribute of toc element, but that
didn't help. I also changed the order of preface/lot lines in
fo/pagesetup.xsl <xsl:template name="select.pagemaster"> and
<xsl:template name="setup.pagemasters"> elements, but it had
no effect either.

People on [EMAIL PROTECTED] pointed me to toc.xsl, but I am
not sure what I should change there.

I am using OpenBSD 4.1-current, DocBook 4.4, DocBook XSL 1.68,
and converting XML-based DocBook with xsltproc 2.6.26 and FOP 0.91
to PDF.

--
Tero Koskinen - http://iki.fi/tero.koskinen/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to