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$


/ "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: "&#60!--")
    (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

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