This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: wrong sorting in index in output of 1.58.1
- From: Bob Stayton <bobs at caldera dot com>
- To: abx at abx dot art dot pl, docbook-apps at lists dot oasis-open dot org
- Date: Tue, 17 Dec 2002 16:19:58 -0800
- Subject: Re: DOCBOOK-APPS: wrong sorting in index in output of 1.58.1
- References: <mi1vvu0j7a0mja0hnohltgqjlb745bf2ot@4ax.com>
On Tue, Dec 17, 2002 at 09:28:37PM +0100, ABX wrote:
> I had correctly sorted index in either long xhtml and FO/PDF
> output generated with xsltproc -> DocBook XSL 1.58.1 -> ...
>
> Symbols, A, C, D, E, F, G, H, I, L, M, N, O, R, S, T, V, Y
>
> when I added following three indexterms in the middle of document:
>
> <indexterm><primary>frame_step</primary><secondary>Reference, Frame_Step option</secondary></indexterm>
> <indexterm><primary>STP</primary><secondary>Reference, Frame_Step option</secondary></indexterm>
> <indexterm><primary>+STP</primary><secondary>Reference, Frame_Step option</secondary></indexterm>
>
> then my index reordered itself during rendering to:
>
> Symbols, S, A, C, D, E, F, G, H, I, L, M, N, O, R, T, V, Y
>
> As you see S jumped to begining but after Symbols.
>
> Any idea what could be wrong ? Could it be becouse I used
> the same content for <escondary> in those options ?
> Could it be becouse of plus sign in third <primary> ?
This is a bug in the XSL stylesheets. It was sorting
without folding the lowercase and uppercase entries
together. Your "STP" entry is probably your only uppercase
primary entry, so it got sorted before all other entries.
I just checked in the fixes to CVS (in the autoidx.xsl files).
--
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