JADE--SGML Backend--attributes

Subject: JADE--SGML Backend--attributes
From: Pascal Le-Carrour <pascal.le-carrour@xxxxxxxxxxxxxxxx>
Date: Wed, 24 Mar 1999 13:10:04 +-100
Is there any smart way to get the content of a tag (of input SGML) in a attributes value (of the output SGML) ?

I do use the formatting-instruction sosofo to do the job but it requires to generate " by hand " the syntax :

For instance,  here is the code to generate the HREF attribute of a A Tag  from the content of MY_TAG tag.
This code also generates the content of the A tag with the content of MY_TAG tag.

(element MY_TAG
...
   (make element gi: "TD"
        (make sequence
           (make formatting-instruction
                 data: "&lt;A HREF=\"mailto:";
           )
           (process-children)
           (make formatting-instruction
                  data: "\"&gt;"
           )
           (process-children)
           (make formatting-instruction
 data: "&lt;/A&gt;"
                              )
                           )
		)
...
)

Pascal Le Carrour
Planète Interlignes - 44/46 rue de l'Ouest - 75014 Paris - France
tel : +33 1 53 91 01 00, fax : +33 1 53 91 01 01
http ://www.planete-inter.fr



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


Current Thread