This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: indexterm: primary is optional?
- From: Michael Smith <smith at xml-doc dot org>
- To: docbook at lists dot oasis-open dot org
- Date: Thu, 14 Feb 2002 00:22:21 -0600
- Subject: Re: DOCBOOK: indexterm: primary is optional?
- References: <000501c1b413$cd2bc2a0$4003a8c0@stcu.org>
Brian Lalonde <brianiacus@yahoo.com> writes:
> I notice that the indexterm element is defined as:
>
> indexterm ::=
> (primary?,
> ((secondary,
> ((tertiary,
> (see|seealso+)?)|
> see|seealso+)?)|
> see|seealso+)?)
>
> Why is primary optional?
I think that's necessary to allow for end-of-range Indexterms, which
need to be empty. For example:
<indexterm class="startofrange" id="foo">
<primary>bar</primary>
</indexterm>
...range of content you want to index here...
<indexterm class="endofrange" startref="foo"/>
--
Michael Smith, Tokyo, Japan http://sideshowbarker.net
マイク
The Riddle we can guess
We speedily despise -
Not anything is stale so long
As Yesterday's surprise -
--Emily Dickinson (1222) http://www.logopoeia.com/ed/