This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Inserting SGML comments with $html-body-start$
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: Inserting SGML comments with $html-body-start$
- From: "John R. Sheets" <dusk at ravendusk dot org>
- Date: Fri, 01 Dec 2000 21:14:45 -0600
Hi,
I'm trying to add an SGML comment to my generated HTML files, using the
Modular Stylesheets, by putting this in my customization layer:
(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
"< !--" (i.e., so it's no longer a valid comment), it adds this to the
HTML file:
< !-- #include file="header.html" -->
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.
Thanks,
John
--
dusk@ravendusk.org http://www.gnome.org
jsheets@codeweavers.com http://www.worldforge.org
jsheets@users.sourceforge.net http://openbooks.sourceforge.net
http://advogato.org/person/jsheets