This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Auto Index in FO stylesheets
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Bob Stayton <bobs at caldera dot com>
- Cc: Jeff Beal <jeff dot beal at ansys dot com>,"DocBook Mailing List (E-mail)" <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 01 Jan 2003 15:18:59 -0500
- Subject: DOCBOOK-APPS: Re: Auto Index in FO stylesheets
- References: <E08C8F26F6901D42B1201763D125853815B38A@ntdevexc.win.ansys.com><20021209132620.F19510@caldera.com> <20021212142556.F11649@caldera.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Bob Stayton <bobs@caldera.com> was heard to say:
| On Mon, Dec 09, 2002 at 01:26:20PM -0800, Bob Stayton wrote:
|> 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 just checked in the changes to fix this problem.
| Now an automatically generated index uses only those
| indexterms that are ancestors of the empty index element's
| parent. So a setindex will have indexterms from the
| whole set, while each book's index will have only entries
| for that book. You can have indexes per chapter
| or section, if you want.
What about the case where I have a book in <part>s?
I tinkered with this code a bit (and added support for setindex in the
FO case) so that <index> always indexes the book it's in. Setindex
always indexes the *whole* document.
I just don't think indexing from the parent of index makes much sense
and it completely breaks for books that have parts.
Be seeing you,
norm
- --
Norman Walsh <ndw@nwalsh.com> | Our repugnance to death increases
http://www.oasis-open.org/docbook/ | in proportion to our consciousness
Chair, DocBook Technical Committee | of having lived in vain.--Hazlitt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE+E00zOyltUcwYWjsRAoZ3AJ4mKSz5OtuJGHExOMkDr+M7Ei7lXQCgl8gm
HnxR9MxmynmN8Na9C45RxfY=
=Z47D
-----END PGP SIGNATURE-----