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


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: proper use of indexterm?


On Mon, Jan 20, 2003 at 11:30:52PM +0100, A.R. (Tom) Peters wrote:
> According to the DocBook guide, one can insert <indexterm> tags in all
> kind of places.  However, nsgmls always gives me an error message
> ("document type does not allow element "indexterm" here");
> the only place I found where <indexterm> was acceptable, is in an <index>
> - which is the last place where I want to use it.
> 
> My intention is to have stanza's like:
> <glossentry id="whatever">
> 	<indexterm zone="A"><primary>whatever</primary></indexterm>
> 	<glossterm>whatever</glossterm>
> 	<glossdef>
> 		<para>however</para>
> 	</glossdef>
> </glossentry>
> 
> Any word that is in the glossary is interesting, so should be in the
> index; I hoped to accomplish that by specifying the indexterm in the
> glossentry - which appears legal from the documentation - and have the
> processors search a <part label="A"> for occurences of the term.

Certainly indexterm can be included in many elements in
DocBook, but not every place.
Look more closely at the content model for glossentry.
Any indexterms should come after the glossterm and
before the glossdef.

I'm curious about other places where you found
that indexterm was not accepted.  

-- 

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]