This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] indices (Was: Re: why does xsltproc create drafts from DocBook XML?)
- From: "A.R. (Tom) Peters" <tpeters at xs4all dot nl>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 14 Jan 2004 21:48:43 +0100 (CET)
- Subject: [docbook-apps] indices (Was: Re: why does xsltproc create drafts from DocBook XML?)
On Wed, 14 Jan 2004, Bob Stayton wrote:
> Indexing all occurances of a word in the text of a document
> is not a feature of the DocBook stylesheets. It would require
> the XSLT templates to parse every text node in the designated
> zone, wrap each occurance of the word in a fo:inline
> with a unique id attribute, and then customize the index
> generating templates to add references for those ids.
> It doesn't sound too easy.
I followed the use of <indexterm> as described in the Definitive Guide,
second way to index a range of text. I was under the assumption that a
compliant tool chain would support these indexing methods. I believe that
the DocBook-SGML with DSSSL and jadetex tool chain was able to produce an
index, probably through the (La)TeX features.
> You might consider a preprocessor filter to insert
> <indexterm> elements for each occurance in the
> file before you hand it to the stylesheets.
If I read you correctly, I have to mark-up (by some automized process or
by hand) each occurrence of a word with <indexterm> in order to have it
indexed.
N.B.: the <indexterm> stanza is NOT rendered, you have to repeat it after
the word itself.
--
#>!$!%(@^%#%*(&(#@#*$^@^$##*#@&(%)@**$!(&!^(#((#&%!)%*@)(&$($$%(@#)&*!^$)^@*^@)
Tom "thriving on chaos" Peters
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.