RE: emitting comments

Subject: RE: emitting comments
From: Avi Kivity <Avi@xxxxxxxxxxxxx>
Date: Wed, 4 Aug 1999 15:21:58 +0300
On Wednesday, August 04, 1999 15:05, Holger Klawitter
[SMTP:holger@xxxxxxxxxxxx] wrote:
> (define (make-comment comment)
> 	(make formatting-instruction data: (string-append
> 		"<"
> 		"!--"
> 		comment
> 		"-->"
> 	))
> )
> 
> 
> Note the separation of "<" and "!--". If you put both into one
> string the whole result will be eaten. Is this a bug or a feature?
> 
Your stylesheet is an SGML document instance, parsed by the dsssl engine the
same way as the document you are processing. So any occurence of <!-- is
treated as a beginning of a comment, and consequently not seen by the
interpreter.

If you dislike this wierdness, you can enclose your code in a CDATA marked
section (or something).

---
"The only words which have meaning are the last ones spoken"



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


Current Thread