Thanks Bernhard,
The code is a few hundred lines but your response made me realize the
problem is in my code.

The primaries are identical, but this is my own cadging of xslt which is
the issue.
For now I'll stick  with Python since even if messy, I can understand it
better.
thanks,
--Tim


On Tue, Oct 9, 2018 at 9:45 AM Bernhard Kleine <[email protected]>
wrote:

> Hi Tim,
>
> you are sure that the primary subjects are really the same, if not I get
> double primary terms, too. Maybe you could show an example"
>
> Regards
>
> Bernhard
>
>
> Am 09.10.2018 um 15:39 schrieb Tim Arnold:
> > hi,
> > I create a subject index for my docbook documents but I'm getting
> > multiple entries for primary/secondary terms when I should be getting
> > a single primary with multiple secondaries.
> >
> > Just wondered if others have conquered a similar problem that I can
> > learn from.
> > Currently using Python and lxml to merge them, but it's kind of messy.
> >
> > thanks,
> > --Tim
> > Here's pseudo-output of the situation:
> > ------------
> > term
> >    subterm1
> > term
> >   subterm2
> > -----------------
> >
> > when I want
> > -----------
> > term
> >   subterm1
> >   subterm2
> > --------------
> >
> >
>
> --
> spitzhalde9
> D-79853 lenzkirch
> [email protected]
> www.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>
>
>

Reply via email to