This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: dsssl-1.59 bug in TOC
- To: Norman Walsh <ndw at nwalsh dot com>
- Subject: Re: DOCBOOK-APPS: dsssl-1.59 bug in TOC
- From: Thomas Andre Berger <thomasbe at osc dot no>
- Date: Wed, 29 Nov 2000 10:10:34 +0100
- Cc: docbook-apps at lists dot oasis-open dot org
- Organization: Open Systems Computing AS
- References: <3A2264A9.75A3769E@mandrakesoft.com> <87vgt7k3hi.fsf@nwalsh.com>
Norman Walsh <ndw@nwalsh.com> writes:
> Anyway, I can see what's wrong and I've fixed it. I now wish that my
> log message was more explicit about why I made this change.
>
> In dbautotoc.dsl, delete the (list-element-list) from the toclist:
>
> (define (build-toc nd depth #!optional (first? #t) (level 1))
> (let* ((toclist (toc-list-filter
> (node-list-filter-by-gi (children nd)
> (append (division-element-list)
> (component-element-list)
> (section-element-list))))))
>
> I think I did this to fix a reported bug where figures that were
> inside lists didn't show up in the list of figures. But this isn't
> the right place to fix that bug anyway. Hmmm.
Yes, I reported a bug, in 1.54, that figures inside list elements
disapperad from the documentation's TOC. I have changed the
dbautotoc.dsl in 1.54 to be:
(define (build-lot nd lotgi #!optional (first? #t))
(let* ((lotlist (node-list-filter-by-gi (children nd)
(append (division-element-list)
(component-element-list)
(section-element-list)
(block-element-list)
(list-element-list)
(list (normalize "para"))))))
and I have no problems with the TOC now.
I installed version 1.59 today, and build one of our books. And I got
one error in the TOC, just as already described by Camille et al.
So, I guess the problem is elsewhere. Or have the definition of
list-element-list changed between 1.54 and 1.59, trigging the error?
--
--------------------------------------------------------------------------
Thomas André Berger Open Systems Computing AS
email: thomasbe@osc.no Kongensgt. 9, N-0153 Oslo, Norway
phone: +47 2331 4758 phone +47 2220 4050, fax +47 22 20 02 85
-------------------- http://www.osc.no/ ----------------------------------