This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: generating a two column index
- From: Bob Stayton <bobs at caldera dot com>
- To: jeff dot iezzi at semanticedge dot com, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 01 Feb 2002 00:37:17 -0800
- Subject: Re: DOCBOOK-APPS: generating a two column index
- References: <3C55505A.28564.C885B2@localhost>
On Mon, Jan 28, 2002 at 01:21:30PM +0100, Jeff Iezzi wrote:
> I am trying to generate a two column index in a book, whose pages
> are formatted as single columns. My customization layer has the
> following setting:
>
> <xsl:param name="column.count" select="'1'"/>
>
> I tried modifying the following template in index.xsl without any
> success. Here's one attempt that I made:
>
> <xsl:template match="book/index">
> <xsl:variable name="master-name">
> <xsl:call-template name="select.pagemaster">
> <xsl:with-param name="column.count" select="'2'"/>
> </xsl:call-template>
> </xsl:variable>
>
> I would appreciate any advice or suggestions on how I can get a
> two column index to work.
So far, the fo customization parameters don't let you
select a page master based on the element. That would
be a nice feature. Instead, you have to customize a template
as you started to do.
In your customization for the book/index template
(in the 1.48 stylesheets), you might try replacing:
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
with:
<xsl:variable name="master-reference" select="'twoside2'"/>
This manually selects one of the named page masters defined in
pagesetup.xsl, in this case two-sided pages with 2 columns.
Note the extra quotes around twoside2.
Use oneside2 for single sided pages with 2 columns.
Hope that works.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com