Creating a book toc
Posted: Sat Sep 04, 2010 10:40 am
I need to create a toc for a book, but I don't know where the toc is generated with FO. Am I supposed to create a new XML with a root element 'toc' and is the toc put there somehow when generated? I have been able to create chapter tocs in the right place for each 'chapter' chunk, and the styles I have set do work, but where does a book toc go?
Here's the XSL code I'm using with Oxygen 11.2, RenderX and DocBook 5:
Here's the XSL code I'm using with Oxygen 11.2, RenderX and DocBook 5:
Thanks!<xsl:param name="generate.toc">
/appendix toc,title
article/appendix nop
/article toc,title
book toc,title,figure,table,example,equation
/chapter toc, title
part toc,title
/preface toc,title
qandadiv toc
qandaset toc
reference toc,title
/sect1 toc
/sect2 toc
/sect3 toc
/sect4 toc
/sect5 toc
/section toc
set toc,title
</xsl:param>