[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: RE: DOCBOOK-APPS: generating a two column index
Jeff, Looking into this I see a couple of things you'll need to add to pagesetup.xsl to get it to work: 1) To call the template select.pagemaster with the new with-param, you'll need to add an <xsl:param name="column.count" select="$column.count"/> to the select.pagemaster template in pagesetup.xsl. 2) In the template setup.pagemasters (also in pagesetup.xsl), all of the column-count attributes in the fo:region-bodys in all the fo:simple-page-masters are currently set with $column.count (with the value it has in params.xsl). Not sure the elegant way to do this, but you have to override setup.pagemasters so that the two column versions of the page masters end up with column-count="2". Did that make sense? If not, let me know and I'll send you my hack. This would make a good RFE. You often do see single columned books with two column indexes. It would be nice to set the index column count with a separate parameter. David > -----Original Message----- > From: Jeff Iezzi [mailto:jeff.iezzi@semanticedge.com] > Sent: Monday, January 28, 2002 6:21 AM > To: docbook-apps@lists.oasis-open.org > Subject: DOCBOOK-APPS: generating a two column index > > > 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. > > Thanks in advance, > > Jeff > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC