tags:

views:

140

answers:

1

A long shot here... I am using DocBook 4.5 and wanted to customize whether or not the table of contents is generated. I was looking over the XSD but couldn't find a way to disable it. I found ways to customize it.

Could someone point me in the right direction?

+3  A: 

In both Docbook 2 and Docbook 5 the toc element documenation says:

"In real life, tocs are usually generated automatically by the presentation system and never have to be represented explicitly in the document source."

So the next question is, which presentation system are you using?


Since you're using FOP (which I haven't used too much), I get the impression from this documentation that you can just pass generate.toc=nop on the command line to suppress building a table of contents. See also this Google groups page.

Mark Rushakoff
Define presentation system. Not entirely sure that that means.
predhme
What are you using to convert your Docbook XML to pdf/html/tex/chm/etc?
Mark Rushakoff
He's saying that docbook doesn't generate the toc, it's whatever word processing system you're using.
Dana the Sane
Oh. I am using apache FOP. I will look through their documentation.
predhme
was able to pass generate.toc=nop directly to the transformer via the setParam(String paramName, Object value) and that did the trick. Awesome! Thanks a lot!
predhme