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: indexterm: primary is optional?


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
&#x30DE;&#x30A4;&#x30AF;

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/




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