Removing a Version and List of Tables from a DocBook Document

I have a problem with the DocBook XSL customization level. I am using Apache FOP to convert a document from DocBook XML to PDF. But the book contains a second page (the so-called verso) and a List of Tables page. I just deleted the content, but the second page remains blank. I do not understand how to remove the second blank page.

(I found only one solution: just add <xsl:template name="book.titlepage.verso"/> to your templates, but after adding this element the second page will remain empty.)

I also cannot find a solution on how to delete the List of tables page.

+5
source share
1 answer

It was easy. I found this in titlepage.templates.xsl :

  <xsl: template name = "book.titlepage.before.verso">
    <fo: block xmlns: fo = "http://www.w3.org/1999/XSL/Format" break-after = "page" />
 </ xsl: template> 
Yeah! This is a page break pattern, isn't it? What happens when I turn it into an empty template? Et voilà, solution found:
  <! - clear verso ->
 <xsl: template name = "book.titlepage.verso" />
 <! - clear page break after verso ->
 <xsl: template name = "book.titlepage.before.verso" /> 
And how to remove the annoying list of tables? Copy the main settings for the table of contents (table of contents) into your template:

  <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> 

The list contains everything that should be collected in the table of contents in certain parts of the document. If you delete figure,table,example,equation , you get a standard table of contents.

Note: The list indicates which blocks should contain a table of contents and which ones should not. If you need to reduce the depth of the table of contents, you should add to your template, for example:

  <xsl: param name = "toc.max.depth"> 2 </ xsl: param> 

+7
source

All Articles