Next in thread → Next in month →

Re: [docbook-apps] How to place list of tables and list of figures at the end of document?

From
Bob Stayton <>
Date
2008-12-01T18:33:59+00:00
ID
003d01c953e3$5a57b9b0$6a00a8c0@pazu
Thread
Re: [docbook-apps] How to place list of tables and list of figures at the end of document?
Hi,
This would require customizing two templates.  In fo/division.xsl there is a 
template with match="book" that generates the entire book.   In that 
template is a call to a template named make.book.tocs.  The make.book.tocs 
generates all the tables of contents.  I think the easiest solution is to:

1.  Copy the match="book" template from fo/divison.xsl and modify the call 
to make.book.tocs to include a new param to indicate front or back tocs. 
And then add a second call after the book content.  Something like this:

<xsl:call-template name="make.book.tocs">
  <xsl:with-param name="location">front</xsl:with-param>
</xsl:call-template>

<xsl:apply-templates select="$content"/>

<xsl:call-template name="make.book.tocs">
  <xsl:with-param name="location">back</xsl:with-param>
</xsl:call-template>

2.  Copy the template named make.book.tocs from division.xsl and modify it 
to use the new param:

<xsl:template name="make.book.tocs">
  <xsl:param name="location">front</xsl:param>

  <xsl:choose>
    <xsl:when test="$location = 'front'">
      [process only the TOC here]
    </xsl:when>
    <xsl:when test="$location = 'back'">
      [process other lists here]
    </xsl:when>
  </xsl:choose>

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: <>
To: <>
Sent: Sunday, November 30, 2008 9:34 AM
Subject: [docbook-apps] How to place list of tables and list of figures at 
the end of document?


>
> Can anyone help me how to place list of tables and list of figures at the
> end of document, but Table of contents leave as it is (before body pages).
> Thank you in advance!
> Kind Regards,
>
> Jacek Lewandowski
> Software development
> ifb-group, Cologne, Germany
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →