[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Placing table of contents after preface
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 bobs@sagehill.net ----- Original Message ----- From: "Tero Koskinen" <tero.koskinen@iki.fi> To: <docbook-apps@lists.oasis-open.org> 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 #docbook@FreeNode 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: 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]