Re: Comments

Subject: Re: Comments
From: Daniel Speck <dspeck@xxxxxxx>
Date: Tue, 16 Feb 1999 16:22:31 -0500
 

J-P Theberge wrote:

Hi,

While using jade for xml->html, I want to insert some comments in the
html output.

However, this:

   (make formatting-instruction data: "<!--My comment-->")

doesn't work.
No error are generated but nothing can be found in the source code.

What an I doing wrong?
 

Remember that DSSSL specifications are SGML documents. Your comment is being eaten by the SGML parser that parses the DSSSL spec. You can use several techniques to prevent this from happening:

(make formatting-instruction data: (string-append "<" "!-- My comment-->")

<![CDATA[
(make formatting-instruction data: ("<!-- My comment-->")
]]>

...

-dan

--
Daniel Speck
Bureau of National Affairs, Inc.               Voice: +1 202.452.6596
1231 25th Street, NW                             Fax: +1 202.331.5178
Washington, DC 20037                          e-mail:  dspeck@xxxxxxx
 

Current Thread
  • Comments
    • J-P Theberge - Tue, 16 Feb 1999 15:51:41 -0500 (EST)
      • Chris Maden - Tue, 16 Feb 1999 16:28:08 -0500 (EST)
      • Daniel Speck - Tue, 16 Feb 1999 16:56:59 -0500 (EST) <=