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: [docbook-apps] Different "column.count.index" for different indexes


Hi Steffan,
No, it is not possible to specify different column counts for different indexes with just that param.

This would require defining a set of custom page-masters for index that specify the column count with a call to a custom template:

Replace this:

<fo:region-body margin-bottom="{$body.margin.bottom}"
                     margin-top="{$body.margin.top}"
                     column-gap="{$column.gap.index}"
                     column-count="{$column.count.index}">

with this:

<fo:region-body margin-bottom="{$body.margin.bottom}"
                     margin-top="{$body.margin.top}"
                     column-gap="{$column.gap.index}">
 <xsl:attribute name="column-count">
   <xsl:call-template name="index.column.count"/>
 </xsl:attribute>


And then define a template named 'index.column.count' that resolves to an integer based on the @type attribute, something like this:

<xsl:template name="index.column.count">
 <xsl:choose>
   <xsl:when test="@type = 'long_names'">1</xsl:when>
   <xsl:otherwise>2</xsl:otherwise>
 </xsl:choose>
</xsl:template>

For more help on creating and calling custom page masters, see:

http://www.sagehill.net/docbookxsl/PageDesign.html#DeclarePageMasters


Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

--------------------------------------------------
From: <steffen.wagner.hays@zf.com>
Sent: Wednesday, November 07, 2012 5:43 AM
To: <docbook-apps@lists.oasis-open.org>
Subject: [docbook-apps] Different "column.count.index" for different indexes

Hello,

with the parameter "column.count.index" you can specify the number of columns for all indexes.
But is it possible to define this number specific for different indexes?

E.g.: "<index type='long_names'/>" with 1 column and "<index type='short_names'/>" with 2 columns?


THANKS


Mit freundlichen Grüßen / Kind regards / S pozdravem

Steffen Wagner, VoyagerSoft
wagner@voyagersoft.de

ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone +49 7541 77-7644
steffen.wagner.hays@zf.com
Software Consultant


Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Hans-Georg Härter (Vorsitzender/CEO), Dr. Stefan Sommer, Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, Reinhard Buhl, Rolf Lutz, Wilhelm Rehm
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206


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