OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] indexterm with zone attribute


On Samstag, 28. Juni 2008, Dave Pawson wrote:
> Richard Hamilton wrote:
> > I've been indexing a document and am having some trouble with the
> > zone attribute on indexterm.
> >
> > When the zone attribute points to an id on a block that extends over
> > more than one page, I would expect to see a range in the output, but
> > I only see the first page.
> To know the range you need feedback from the formatter?
> As it is the formatter is inserting the page number
> (of the id) from the start page. You'd need to have an
> id at the 'end of the section' to gain 'range' information.
> I don't think that's doable Richard.

Dave, I think you miss a point. :-) The TDG[1] has to say:

  »Place the indexterm anywhere you like and point to the element
   that contains the range of text you wish to index with the zone
   attribute on the indexterm. Note that zone is defined as IDREFS
   so a single indexterm can point to multiple ranges.«

The zone attribute is IDREFS (plural), so it can consume at least 2 
values, pointing to the start and end ID of the index range. So Richard 
just needs to insert the missing ID value, pointing to the end of his 
range. I guess, it should be sufficent to point to the last inner section 
or the next sibling section, depending on the structure.


[1] http://www.docbook.org/tdg5/en/html/indexterm.singular.html

Thomas Schraitle

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]