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] | [Elist Home]

Subject: Re: DOCBOOK-APPS: generating a two column index

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

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

Powered by eList eXpress LLC