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: [docbook-apps] why does xsltproc create drafts from DocBook XML?


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.

You might consider a preprocessor filter to insert
<indexterm> elements for each occurance in the
file before you hand it to the stylesheets.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Tom Peters" <tpeters@xs4all.nl>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, January 13, 2004 11:48 AM
Subject: Re: [docbook-apps] why does xsltproc create drafts from DocBook
XML?


> On Mon, 12 Jan 2004, Bob Stayton wrote:
>
> > I think the stylesheet is functioning properly, but I'm not clear what
your
> > expectation is.
> >
> > Your indexentry includes a zone="A" attribute, which means the
destination
> > of
> > the link from the index entry should be the element whose id is "A",
which
> > is the part element.  And that is precisely what goes into the FO file
for
> > the index entry:
> >
> > ... internal-destination="A"><fo:page-number-citation ref-id="A"/>
> >
> > And indeed the page number that is generated is for the part title page.
> > Is that not what you expected?
>
> No, I want an index of all occurrences of the terms from the glossary, in
> the text pages that form part A.
> >From the "Definitive Guide" I understood that in order to be able to put
> the indexterm anywhere (e.g. in a separate document) I had to use "zone"
> and refer to the section to be indexed.
>
> So let me rephrase:
> Given a glossary of interesting words, how do I make an index of page
> numbers for those words in another section?
>
> --
>
#>!$!%(@^%#%*(&(#@#*$^@^$##*#@&(%)@**$!(&!^(#((#&%!)%*@)(&$($$%(@#)&*!^$)^@*
^@)
>
> 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/.
>
>
>



To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


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