|
Subject: Re: copying of selected attributes From: Norman Walsh <ndw@xxxxxxxxxx> Date: Tue, 27 Apr 1999 10:37:50 -0400 |
| I'm doing some SGML transformation into HTML and have difficulties to
| accomplish selective attribute copying, even after I spent some time
| trying (yet not succeeding) to understand the (copy-attributes)
| function. (list, cons, car and cdr startet to loop in my brain.)
| Here is the problem:
| The source DTD defines a TABLE element with almost the same attlist
| like the target DTD (HTML). All attributes are implied and the
| sources additional ID-attribute (optional) has to be transformed
| into an <A>-element with respective NAME-attribute.
| So, all but the ID-attribute have to be copied to the target TABLE-
| element.
I tend to do this with append:
attributes: (append
(if (attribute-string "ALIGN")
(list (list "ALIGN" (attribute-string "ALIGN")))
'())
(if ...))
Cheers,
norm
--
Norman Walsh <ndw@xxxxxxxxxx> | The facts, although interesting,
http://nwalsh.com/ | are usually irrelevant.
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| copying of selected attributes, Steffen Heinrich | Thread | Re: copying of selected attributes, Daniel Speck |
| copying of selected attributes, Steffen Heinrich | Date | RE: Sorted table of contents?, Peter Nilsson |
| Month |