Changing the value of a variable

Subject: Changing the value of a variable
From: "joseph, Gershon" <Gershon_joseph@xxxxxxxxxxxxx>
Date: Wed, 28 Jul 1999 20:53:51 +0300
This should be simple, but I can't find how to do it. I want to manage
counters on elements in an equivalent way to how counters work in FOSIs.
DSSSL does not provide a function to maintain a counter for some element
that occurs anywhere under a specific parent element.

I tried the following, but Jade does not recognize set!:

(define $fig-ct$ 0)

;; Reset counter, used to reset counters to zero
(define reset-counter
	(lambda (x)
		(set! x 0)))

;; Increment counter
(define incr-counter
	(lambda (x)
		(+ x 1)))

(element chap
	(make sequence
		(reset-counter $fig-ct$)
		(process-children)))

This generates the error: reference to undefined variable "set!"

I've tried all sorts of things, and can't get this to work. 

What am I doing wrong?

Thanks in advance,

Gershon

Gershon Leib Joseph
DOCUMENTATION TECHNOLOGIES MANAGER
Comverse Network Systems
Tel: +972-3-645-2001
Fax: +972-3-645-4088
email: gershon_joseph@xxxxxxxxxxxxx


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread