[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]