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

From
Bob Stayton <>
Date
2008-04-17T16:17:48+00:00
ID
0BD0C011DFB248FBA7901972A85B0BC4@sheeta
Thread
Re: [docbook-apps] Columns in index of article, with docbook-xsl-ns
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/>
    </fo:flow>
  </fo:page-sequence>

to:
      ...
      <xsl:apply-templates select="*[not(self::index)]"/>
    </fo:flow>
  </fo:page-sequence>
  <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"/>
    </xsl:with-param>
  </xsl:call-template>


Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Rasmus Kaj" <>
To: <>
Sent: Wednesday, April 16, 2008 10:53 AM
Subject: [docbook-apps] Columns in index of article, with docbook-xsl-ns


> Hi!
>
> I'm trying, without success, to get a multi-column index in a DocBook
> article.
>
> 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 <>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>