1 --- docbook-dsssl-1.76/bin/collateindex.pl.seealso 2002-02-21 00:14:36.000000000 +0000
2 +++ docbook-dsssl-1.76/bin/collateindex.pl 2002-05-03 08:27:25.000000000 +0100
4 $first = 1; # this is the first one
5 $group = ""; # we're not in a group yet
6 $lastout = ""; # we've not put anything out yet
7 +@seealsos = (); # See also stack.
10 next if $idx->{'startref'}; # no way to represent spans...
13 print OUT "\n </$lastout>\n" if $lastout;
15 + foreach (@seealsos) {
16 + # it'd be nice to make this a link...
17 + print OUT $indent, " <seealsoie>", &escape($_), "</seealsoie>\n";
21 print OUT " <secondaryie>", $idx->{'secondary'};
22 $lastout = "secondaryie";
23 if ($idx->{'tertiary'}) {
26 print OUT "\n </$lastout>\n" if $lastout;
28 + foreach (@seealsos) {
29 + # it'd be nice to make this a link...
30 + print OUT $indent, " <seealsoie>", &escape($_), "</seealsoie>\n";
34 if ($idx->{'tertiary'}) {
35 print OUT " <tertiaryie>", $idx->{'tertiary'};
36 $lastout = "tertiaryie";
39 # End any open elements...
40 print OUT "\n </$lastout>\n" if $lastout;
42 + foreach (@seealsos) {
43 + # it'd be nice to make this a link...
44 + print OUT $indent, " <seealsoie>", &escape($_), "</seealsoie>\n";
48 print OUT "</indexentry>\n\n";
54 if ($idx->{'seealso'}) {
55 - # it'd be nice to make this a link...
57 - print OUT "\n </$lastout>\n";
60 - print OUT $indent, "<seealsoie>", &escape($idx->{'seealso'}), "</seealsoie>\n";
61 + push @seealsos, $idx->{'seealso'};