| 
 
Subject: Re: How to output HTML comments in JADE From: Jon Haugsand <Jon.Haugsand@xxxxx> Date: 24 Mar 1999 11:13:27 +0100  | 
* P. Stritzi
> Hi,
> 
> I try to output HTML comments from a DSSSL Style sheet with JADE to
> put CSS1 in my generated HTML pages.
> 
> I tried:
> 
> (make element gi: "style" attributes '(("type" "text/css"))
>    (literal "<!-- TD { font-family: sans-serif } -->"))
> 
> Somehow jade notices when the text output is a comment and drops it.
> I also tried to split the comment in several "literals" but it always
> disappears in the output.
I have the following in my .dsl file:
;;;; -------------------------------
;;;; Comment handling
;;;; -------------------------------
(define *comment-start* (string-append "<" "!-- "))
(define *comment-end* (string-append " --" ">
"))
(define (make-comment cmt)
    (make formatting-instruction
	  data: (string-append *comment-start* cmt *comment-end*)))
			   
-- 
Jon Haugsand
  Norwegian Computing Center, <http://www.nr.no/engelsk/> 
  <mailto:haugsand@xxxxx>  Pho: +47 22852608 / +47 22852500, 
  Fax: +47 22697660, Pb 114 Blindern, N-0314 OSLO, Norway
 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: How to output HTML comments in , jim_albright | Thread | RE: How to output HTML comments in , STE MARIE, PAUL | 
| Help about address keyword, Didier PH Martin | Date | JADE--SGML Backend--attributes, Pascal Le-Carrour | 
| Month |