This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Inserting SGML comments with $html-body-start$
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Inserting SGML comments with $html-body-start$
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Mon, 04 Dec 2000 15:24:40 -0500
- References: <20001201211445.C13356@ravendusk.org>
/ "John R. Sheets" <dusk@ravendusk.org> was heard to say:
| (define ($html-body-start$)
| (literal "<!-- #include file=\"header.html\" -->"))
|
| I obviously don't want the server-side #include to show up if the file
| is viewed directly, but the stylesheet seems to totally ignore the
| comment, inserting nothing at all. If I change the "<!--" to a
Well, that's because the stylesheets are SGML documents, so what Jade
sees is:
(define ($html-body-start$)
(literal ""))
| Any way around this? If not, I guess I can add a sed post-processing
| step to hack in the comments, but I'd much rather keep it simple. I'm
| using the 1.57 stylesheets.
Try this:
(define ($html-body-start$)
(make sequence
(make formatting-instruction data: "<!--")
(literal "#include file=\"header.html\""))
(make formatting-instruction data: "-->")))
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | The stone fell on the pitcher? Woe
http://www.oasis-open.org/docbook/ | to the pitcher. The pitcher fell
Chair, DocBook Technical Committee | on the stone? Woe to the
| pitcher.--Rabbinic Saying