|
Subject: Re: attributes in SGML to SGML From: Daniel Speck <dspeck@xxxxxxx> Date: Wed, 21 Jul 1999 13:25:16 -0400 |
Jany Quintard wrote:
> (list
> (if (attribute-string "AAAA") (list "xxxx" (attribute-string "AAAA"))
> list_empty)
> (if (attribute-string "BBBB") (list "yyyy" (attribute-string "BBBB"))
> list_empty))
>
> The problem is what to use for list_empty ?
> () gives an error
> ( "" "" ) works but seems rather silly in any output other than HTML.
>
> Does anyone know of a better solution ?
>
The correct syntax for specifying the empty list is '().
The following might work better:
(append
(if (attribute-string "AAAA") (list (list "xxxx" (attribute-string
"AAAA")) '())
(if (attribute-string "BBBB") (list (list "yyyy" (attribute-string
"BBBB")) '()))
see also the Jade documentation for the SGML backend. James Clark provides a
procedure that duplicates an element including any attributes.
-dan
--
Daniel Speck
Bureau of National Affairs, Inc. Voice: +1 202.452.6596
1231 25th Street, NW Fax: +1 202.331.5178
Washington, DC 20037 e-mail: dspeck@xxxxxxx
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: attributes in SGML to SGML, Toby Speight | Thread | Re: attributes in SGML to SGML, Jany Quintard |
| Re: attributes in SGML to SGML, Toby Speight | Date | Re: attributes in SGML to SGML, Brandon Ibach |
| Month |