Counted Lists

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
  • Counted Lists
    • Chuck Darney - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA22644Wed, 28 Jan 1998 14:43:18 -0500 (EST) <=
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id PAA23246Wed, 28 Jan 1998 15:09:29 -0500 (EST)