Subject: Counted Lists From: Chuck Darney <cdarney@xxxxxxxxxxxxxxxx> Date: Wed, 28 Jan 1998 14:29:11 -0500 |
Hi again; I'm now trying to produce lists with properly incremented counting (ie: i., ii., iii. - or a., b., c.). The lists in the Docbook DSL are very good, but don't do quite what I want. I've tried modifying the example to produce the following but Jade gives me an error saying "this context requires a sosofo". Does the 'string-append' require something else? (element (LIST ITEM P) (make line-field (case (inherited-attribute-string "type") (("1")(string-append (format-number (PARNUM) "1") ".")) (("2")(string-append (format-number (PARNUM) "A") ".")) (("3")(string-append (format-number (PARNUM) "a") ".")) (("4")(string-append (format-number (PARNUM) "i") ".")) (("5")(string-append (format-number (PARNUM) "I") ".")) (("6")(string-append (format-number (PARNUM) "A") ".")) (("7")(string-append (format-number (PARNUM) "A") ".")) (("8")(string-append (format-number (PARNUM) "A") ".")) ))) (define (PARNUM) (child-number (parent (current-node)))) The last three or so items in the 'case' will be for bullets, etc. Thanks...Chuck Darney DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
SGML to HTML with DSSSL, Paul Prescod | Thread | Re: Counted Lists, W. Eliot Kimber |
Re: DSSSL side effect-freeness, Pierre Mai | Date | Re: DSSSL side effect-freeness, W. Eliot Kimber |
Month |