* bug in docbook LOT
@ 2001-03-02 6:10 Ricardo
0 siblings, 0 replies; only message in thread
From: Ricardo @ 2001-03-02 6:10 UTC (permalink / raw)
To: docbook-tools-discuss, ndw
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]
This Function, causes a bug. The <figure> inside a list
(orderedlist,variablelist...) doesn't appears in List of Figures.
In dbautoc.dsl
(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"))))))
(if (node-list-empty? lotlist)
(empty-sosofo)
(make sequence
(lot-title first? lotgi)
(let loop ((nl lotlist))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(if (string=? (gi (node-list-first nl)) lotgi)
($lot-entry$ (node-list-first nl))
(empty-sosofo))
(build-lot (node-list-first nl) lotgi #f)
(loop (node-list-rest nl)))))))))
Using this, fix the bug
(define (build-lot nd lotgi #!optional (first? #t))
(let* ((lotlist (select-elements (descendants nd) (normalize lotgi))))
(if (node-list-empty? lotlist)
(empty-sosofo)
(make sequence
(lot-title first? lotgi)
(let loop ((nl lotlist))
(if (node-list-empty? nl)
(empty-sosofo)
(make sequence
(if (string=? (gi (node-list-first nl)) lotgi)
($lot-entry$ (node-list-first nl))
(empty-sosofo))
(build-lot (node-list-first nl) lotgi #f)
(loop (node-list-rest nl)))))))))
hugs
--
Ricardo Soares Guimarães (GNOME - Brazil / KDE Brazil)
LDP-BR - LIE-BR
ricardo@conectiva.com.br +55 041-360-2682 uin: 39252777
As esplendidas fortunas - como os ventos impetuosos -
provocam grandes naufragios.
-- Plutarco
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-02 6:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-02 6:10 bug in docbook LOT Ricardo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).