This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Auto Index in FO stylesheets
- From: Bob Stayton <bobs at caldera dot com>
- To: Jeff Beal <jeff dot beal at ansys dot com>,"DocBook Mailing List (E-mail)" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 09 Dec 2002 13:26:20 -0800
- Subject: Re: DOCBOOK-APPS: Auto Index in FO stylesheets
- References: <E08C8F26F6901D42B1201763D125853815B38A@ntdevexc.win.ansys.com>
On Mon, Dec 09, 2002 at 03:46:47PM -0500, Jeff Beal wrote:
> I just tried to automatically generate an index at the end of a book using
> the DocBook 1.57.0 stylesheets and XEP. I found that the generate.index
> parameter did nothing unless I had an empty <index/> tag at the end of the
> book, and that the index then contained the index for the entire set.
>
> I searched for the string "generate.index" in the entire fo/ directory of
> the XSL distribution, and couldn't find it. Is this a parameter that is not
> yet supported? Regardless of that, shouldn't an empty <index/> at the end
> of a book only generate an index for that book instead of all 26 books in
> the set?
Hi Jeff,
It looks like the FO indexing machinery needs a bit of work.
The way I read the stylesheets, if you want an index
in print output, you add an <index> element. The
$generate.index parameter is not consulted. It should be.
You'll still need to include an empty <index> element to tell
the stylesheet where you want it, though.
Also, the selection of index terms for an index
in the 'generate-index' template is "//indexterm[...]",
which includes the whole document, which is <set> in
your case. It should be relative to the parent of <index>,
something like "parent::*//indexterm[...]".
I suggest you file a bug report.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com