Subject: Re: Yet another newbie question From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx> Date: Wed, 26 Aug 1998 18:25:54 -0700 |
At 98/08/26 17:26 -0400, Tony Graham wrote: >At 26 Aug 1998 15:38 -0500, CORL, Ernie wrote: > > I have the following entry in my dsssl spec: > > (element sysobj > > (make element > > gi: "newsysobj" > > attributes: '(("newtype" (attribute-string "type"))) > > )) >... >Your quoting with "'" is being a bit too successful. Try: >... > attributes: (list > (list > "newtype" (attribute-string "type"))) > >although the second `list' is possibly unnecessary, in which case >parentheses could be used. Nope ... it is entirely necessary ... the quoted format '() essentially tells the DSSSL engine that "whatever I'm writing in these parentheses, take the values as given, not as evaluated", so all ancestral list operators on the return value of a called procedure must be the list function and not the quoted form. Thus, when doing many attributes, you can only quote those which are known at compile time, as in the following example: attributes: (list '("BORDER" "0") (list ("SRC" (attribute-string "filename")))) I hope this helps. ...... Ken -- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/d/ Box 266, V: +1(613)489-0999 Kars, Ontario CANADA K0A-2E0 F: +1(613)489-0995 Training: http://www.CraneSoftwrights.com/d/schedule.htm Resources: http://www.CraneSoftwrights.com/d/resources.htm Shareware: http://www.CraneSoftwrights.com/d/shareware.htm DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Yet another newbie question, Tony Graham | Thread | Re: Yet another newbie question, Louis-Dominique Dube |
[Q] Using comments., Jun Seong Hak | Date | Re: Jade Backends (from The DSSSLis, Jean-Baptiste Nivoit |
Month |