Re: (dsssl) Dynamic defines

Subject: Re: (dsssl) Dynamic defines
From: Devin Weaver <ktohg@xxxxxxxxxxxxx>
Date: Tue, 27 Feb 2001 10:22:28 -0500
On Mon, Feb 26, 2001 at 11:45:07AM -0800, Russell O'Connor wrote:
> (define (%show-comments%)
>  (string=? "DRAFT" (attribute-string (tree-root (current-node)) "STATUS"))
> )

The following did this for me Thank to everyone. I had to redefine the
element for comment and remark to use (%show-comments%) instead of
%show-comments% but that's was fine.

To be a bit clearer I rewrote it to look like this:
    (define (%show-comments%)
      (equal? "draft"
        (attribute-string "status" (tree-root (current-node)))))

Question is "DRAFT" and  "STATUS" case sensitive?

-- 
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

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

Current Thread