[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Fo question
On Sunday 22 October 2006 21:58, Stefan Mueller wrote: > for my project I am creating an pdf file using > docbook/xsl-1.70.1/fo/docbook.xsl > It is a book project. > > In the pdf-file I always get a page with just a headline on it > "Part I. Installing...." > the next page contains just the table of contents and > on the next page it starts with "Chapter 1." > > How to I get rid of the page with just "Part I. Installing..." on it? > > Below you'll find the ant task I am using for xsl-process. > > > <target name="xmltofo" depends=""> > <java jar="Documentation/src/Tools/saxon.jar" fork="true"> > <arg line="-o Documentation/src/doc.fo Documentation/src/doc.xml > Documentation/src/DocBook/xsl-1.70.1/fo/docbook.xsl" /> > <arg value='paper.type="A4"' /> > <arg value='chunk.section.depth="0"' /> > <arg value='chunk.first.sections="0"' /> > <arg value='generate.section.toc.level="0"' /> > <arg value='toc.section.depth="1"' /> > <arg value='toc.max.depth="3"' /> > <arg value='generate.index="1"' /> > </java> > </target> Your Docbook file has part elements so this is why the Part X thing is generated in the output. If you don't want the Part X then refactor your XML so that your book is comprised of chapters only. <book> <chapter>.... </chapter> <chapter>.... </chapter> <chapter>.... </chapter> </book> In this case only a single TOC is generated, at the front of the book. You can use the generate.toc parameter to set where you want tocs to be generated. http://www.sagehill.net/docbookxsl/TOCcontrol.html#TOCcomponents Hope this helps, -- Ask me about the Monkey. Sean Wheller Technical Author sean@inwords.co.za +27-84-854-9408 http://www.inwords.co.za
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]