Re: attributes in SGML to SGML

Subject: Re: attributes in SGML to SGML
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Wed, 21 Jul 1999 13:12:18 -0500
Quoting Jany Quintard <quintard.j@xxxxxx>:
> I am having a little problem with the conversion of attributes from SGML
> DTD1 to SGML DTD2
> ...
> Does anyone know of a better solution ?
> 
Hi, Jany...
   While the solutions given by Dan and Toby should do the trick, I
think a slicker approach would be to use the copy-attributes function
from James' page on the SGML Transformation backend, and modify it
just a bit to, instead of just copying the name, pass it into a
function which will map to the new name.  Thus, you could (define) a
list of lists, each of which has two elements: the old name and the
new name.  Your modified copy-attributes function would take a list
like this as an additional argument, and probably pass it on to
another function (along with the name to be mapped) for mapping.
   Let me know if you need some help putting this together.

-Brandon :)


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread