OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: Re: [docbook-apps] Columns in index of article, with docbook-xsl-ns


I had the same problem as Rasmus and up to now I was using another suggestion Bob gave me on November 1, 2006 (Subject: generating an index with 2 columns) which also consisted of a modification of the fo/component.xsl plus the setting of the column.count.body stylesheet parameter to 2. This was doing the job but with some inconvenience:
  • the header contained the title of the last section instead of Index
  • more important, twice I updated the stylesheets and I forgot to re-apply the modification to fo/component.xsl and I ended with a complete document in 2 columns :-(
Therefore, I was very interested with the new proposed solution. I tried it and found the following problems:
  • The numbering of the Index pages restarts at 1 (shown also as page 1 in the Table of Contents)
  • The header and footer of the Index pages are empty
Whenever it is possible I use book but, for some of my documents, switching to a book is not really a solution because they contain several sections that cannot be organized into chapters and section is not a child of book.

Ideally, it would be possible to use a parameter to specify the number of columns in the Index pages.


Bob Stayton wrote:
<div class="moz-text-flowed" style="font-family: -moz-fixed">Hi,
Multiple columns are specified in the page-master, so your index content must be removed from the main article page-sequence that uses the "body" page-master and put into a new page-sequence using the "index" page-master. You would have to customize the template with match="article" from fo/component.xsl.

Near the end of the template, change:

     <xsl:apply-templates select="*[not(self::index)]"/>
 <xsl:call-template name="page.sequence">
   <xsl:with-param name="master-reference">index</xsl:with-param>
   <xsl:with-param name="content">
     <xsl:apply-templates select="index"/>

Bob Stayton
Sagehill Enterprises

----- Original Message ----- From: "Rasmus Kaj" <kaj@kth.se>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, April 16, 2008 10:53 AM
Subject: [docbook-apps] Columns in index of article, with docbook-xsl-ns


I'm trying, without success, to get a multi-column index in a DocBook

After a lot of searching I found that the index page-master isn't used
for an article.  If I switch to a book it works, but then I get loads of
extra page breaks and empty pages that I don't want (and what I write
feels more like an article than a book).

I do have the index on a page for itself.  Can I specify a page-master
from my titlepages specification?  Or can I specify a number of column
in some way that don't require the use of a page-master?

I'm using DocBook 5.0, docbook-xsl-ns-1.73.2, and fop 0.94.

Rasmus Kaj <kaj@kth.se>

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]