|
Subject: Re: Yet another newbie question From: Louis-Dominique Dubeau <ldd@xxxxxxxxxxx> Date: 27 Aug 1998 08:37:11 -0400 |
Tony Graham <tgraham@xxxxxxxxxxxxxxxx> writes:
> 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")))
> > ))
> >
> > But I receive the following error message from Jade:
> > "...invalid value for "attributes" characteristic".
>
> Your quoting with "'" is being a bit too successful. Try:
>
> (element sysobj
> (make element
> gi: "newsysobj"
> attributes: (list
> (list
> "newtype" (attribute-string "type")))
>
> although the second `list' is possibly unnecessary, in which case
> parentheses could be used.
You can get the same effect by doing this:
(element sysobj
(make element
gi: "newsysobj"
attributes: `(("newtype" ,(attribute-string "type")))))
Only the last line has changed. It uses backquote instead of quote
and (attribute-string...) is preceeded by a comma. (Beware: in some fonts,
quotes and backquotes have the same appearance.) Basically the
backquote says, quote the following but evaluate whatever element is
preceeded by a comma. I use that all the time instead of using
(list...) because it allows for terser code (whether this is actually
a good thing or not is probably debatable).
Regards,
ldd
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Yet another newbie question, G. Ken Holman | Thread | Docbook/style sheet bug & tex backe, Glenn R. Kronschnabl |
| AW: PostScript?, Dr. Markus Hönicka | Date | Re: PostScript?, David Megginson |
| Month |