Re: Tags with start tags only.

Subject: Re: Tags with start tags only.
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Mon, 2 Aug 1999 10:36:38 -0500
Quoting Reyes Garcia Rosado <reyes.garcia@xxxxxxxxxx>:
> I have a little problem with one entity. I have use the code in the end of
> jadedoc/transformation.htm to copy parts of SGML files in another. In some
> tags, I must have only start tags. For this cases I have write somthing
> like this:
> 
> 	(element REF-WARBESCH 
> 		(make empty-element
>                     attributes: (list (list "LINK"
>                                             (attribute-string
>                                               "LINK" (current-node))))
> 		      (literal (data (current-node)))
> 		)
> 	)
> 
> When I execute the dsl file the result file is like I want, but I have an
> error: 
> 
> 	Jade:c:\StarDsssl\Evo-Jade\Evo_out.dsl:363:2:E: content expression
>         cannot be specified in make expression for atomic flow object
>         class "empty-element"
> 
   The problem here is that an empty-element, by definition, can't
have any content, because, well, um... it's "empty"! :)  The (literal)
clause in there is specifying a sequence of character flow objects
from the (data) of the REF-WARBESCH element as content of the new
element.

-Brandon :)


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


Current Thread