Re: (dsssl) newbie coding question

Subject: Re: (dsssl) newbie coding question
From: Holger Klawitter <lists@xxxxxxxxxxxx>
Date: Tue, 02 Oct 2001 09:14:28 +0200
> (define p-style-prime
>   (cond ((has-ancestor "NOTE")(note-p-style))
>         (else (standard-p-style))))

You are defining a constant here (constants have no current-node),
but you want a function.

(define (p-style-prime)
 (cond ...

By the way, you can also use element rules to check for

(element (note paragraph) (some-function))

will evaluate some-function only if the parent of paragraph is note.

With kind regards / Mit freundlichem Gruß
    Holger Klawitter
Holger Klawitter

 DSSSList info and archive:

Current Thread