This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: Page number sorting in automatic index
- From: Bob Stayton <bobs at caldera dot com>
- To: Norman Walsh <ndw at nwalsh dot com>
- Cc: Stephane Bline <stephane dot bline at peregrine dot com>,"'docbook-apps at lists dot oasis-open dot org'" <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 02 Jan 2003 12:40:14 -0800
- Subject: Re: DOCBOOK-APPS: Re: Page number sorting in automatic index
- References: <78EC35D201D3D511921200508BAFE4C3066115@fdmail01.peregrine.com><87wulo7f9o.fsf@nwalsh.com>
On Wed, Jan 01, 2003 at 04:04:51PM -0500, Norman Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> / Stephane Bline <stephane.bline@peregrine.com> was heard to say:
> | When I render a document using XSL 1.58.1, the page numbers listed after the
> | index term are in descending instead of ascending order (i.e 120, 98, 13
> | instead of 13, 98, 120). Is this a known bug ? Is there a simple fix I can
> | make to have it sorted properly.
> | I tried to dig into the code but could not find anything that actually
> | worked....
>
> It's impossible to fix this directly in XSL because XSL doesn't have access
> to the page numbers. You want to check out the documentation for the
> generate-index-markup parameter.
I think you mean the 'make.index.markup' parameter in the
DocBook fo parameter reference. That document describes
post processing of index page ranges.
Maybe I'm being naive here, but aren't the indexterms
in a group processed in document order? Shouldn't that
give proper order to the page numbers? Is it possible
that a filter step is somehow accessing them in reverse order?
I'm not able to duplicate this problem. My page numbers
in my index are in ascending order. Can you supply a
document that exhibits this behavior?
--
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