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 ancestors... (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 holger@xxxxxxxxxxxx http://www.klawitter.de DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: (dsssl) newbie coding question, Brandon Ibach | Thread | Re: (dsssl) newbie coding question, Trent Shipley |
Re: (dsssl) polymorphic em, Brandon Ibach | Date | Re: (dsssl) polymorphic em, Tony Graham |
Month |