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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inserting raw HTML


> Yes, but the'll be a little harder. The include-file function
> (in dblib.dsl), ends with 
> 
>   (literal somevariable)
> 
> What you want is another version of include-file that doesn't put a
> literal wrapper around the result. Then I think it'll be acceptable
> for the data: characteristic of formatting-instruction.

Gotcha!  Thanks tons.  I'm gonna' archive off this solution in case I 
need it later.  With a bit of experimentation, I found I could also 
use:

(make empty-element gi: "% include('layout/header.php'); %")

And then do my actual including in the PHP preprocessor.  Yeah, it's 
a bit of a hack, BUT it lets me do some neat things like changing the 
behavior of the header based on URL.

Not to pat myself on the back too hard, but I think the end result 
came out really stunning.  If you have a moment, take a peek at:

     http://djbdns.wolfhome.com/

You may note that I shrink the wrapper down on following pages to 
leave more room for document.

Thanks again!
Gre7g.

=================================================================
Gre7g Luterman   gre7g@wolfhome.com  http://www.templeofluna.com/
Stay informed: http://www.templeofluna.com/keeper/mailinglist.htm

 Please make sure all emotional baggage is stowed securely in the
     overhead compartment or underneath the seat in front of you.


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