This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Inserting SGML comments with $html-body-start$


On Dec 04, 2000, Norman Walsh <ndw@nwalsh.com> wrote:
> 
> / "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:

Heheh, oops, yeah, forgot about that.

> Try this:
> 
> (define ($html-body-start$)
>   (make sequence
>     (make formatting-instruction data: "&#60!--")
>     (literal "#include file=\"header.html\""))
>     (make formatting-instruction data: "-->")))

Great, thanks Norm!  That did it.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]