Subject: Re: Numbering sections + erratum From: "Pawson, David" <DPawson@xxxxxxxxxxx> Date: Thu, 30 Apr 1998 14:56:23 +0100 |
Trying to use Richard Lights preced-count, as defined in the cookbook, as part of 'Numbering Sections' http://www.mulberrytech.com/dsssl/dssslist/archive/1393.html and wondered if the use of the text list was ever resolved. this would seem to be the suggestd improvement. (define countable-elements '("XXX" "YYY" "ZZZ")) (define (preced-count node) (node-list-length (node-list-filter (lambda (nl) (if (member? (gi nl) countable-elements) #t #f)) (preced node)))) seems to be the suggested improvement from Daniel Speck. the only other query is, which version of node-list-filter is it using? the one from the standard, or the updated one from the archive which has the fix for avoiding reversing the order of the nodes? http://www.mulberrytech.com/dsssl/dssslist/archive/1395.html As implemented I am only getting the top level numbering i.e. without the second, third and fourth levels. TIA, DaveP DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: generate HTML file name, Norman Walsh | Thread | TOC Entries and Remembered Formats, Chuck Darney |
generate HTML file name, Lionel Mallet | Date | TOC Entries and Remembered Formats, Chuck Darney |
Month |