Re: Yet another newbie question

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
  • Yet another newbie question
    • CORL, Ernie - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id RAA14026Wed, 26 Aug 1998 17:20:14 -0400 (EDT)
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id RAA15300Wed, 26 Aug 1998 17:43:53 -0400 (EDT)
        • G. Ken Holman - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id VAA06324Wed, 26 Aug 1998 21:29:25 -0400 (EDT) <=
        • Louis-Dominique Dubeau - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id IAA26127Thu, 27 Aug 1998 08:40:24 -0400 (EDT)