This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Auto Index in FO stylesheets


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]