Subject: RE: (dsssl) Including chunks of HTML code (newbie) From: daniel lance herrick <dan.herrick@xxxxxxxxxxxxxxxx> Date: Wed, 10 Jul 2002 16:12:11 -0400 (EDT) |
On Wed, 10 Jul 2002, Antun Karlovac wrote: > Thanks for your reply Daniel. > > However I'm still very stuck. > > Where does this code go? In the custom dsl file that lives in src/? Or in > one of the other dsl files (dbhtml.dsl perhaps) that live in > src/docbook-dsssl-1.76/html/? I presume that code snippet will have to > replace some existing code? I believe the answer to this question is in the comments about a "driver" in the docbook.org URL I posted earlier (below). basicly, you write a stylesheet containing all your code and then invoking the other stylesheet. When there is a conflict, your stylesheet wins. When there is no conflict the code in the other stylesheet is there to do the work. > Also, I've been looking at the dbhtml.dsl file (above) and found the bit > that generates the HTML, HEAD and inclusive tags. > > I've been trying to tweak this, but I can't seem to escape < >'s. I've tried > \<, \\< and <, but neither of these work. Does anyone know how to escape > pointed brackets? I haven't solved this one. By putting just (literal "<") (literal "body") (literal ">") I'm getting "<body>" in the output, and, because I still don't know much about any of these tools, I'll write a perl script that splits the one monster sgml document into many html pages and converts the concrete syntax delimiters in the process. dan > > Take care, > > Antun > > > -----Original Message----- > From: owner-dssslist@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-dssslist@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of daniel lance > herrick > Sent: Wednesday, July 10, 2002 6:21 AM > To: Antun Karlovac > Cc: DSSSList@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: (dsssl) Including chunks of HTML code (newbie) > > > Yesterday, my response to your question was, "Oh > goody! The newest subscriber to the list (me) can > get the answers to his questions without having to > dominate the list by asking asking asking." > > Today, I've made a little more progress. > > In the code fragment "one helpful soul" suggested > to you, "(element root ...)" is a > root-construction-rule which we find in 12.4.1 of > the DSSSL standard. > > http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=18196 > &ICS1=35&ICS2=240&ICS3=30 > or (http://xml.coverpages.org/dsssl.html (see the ZIP archive, > accessible via HTTP)). > > The ... in the root-construction-rule is an expression of type sosofo, > which the (sosofo-append ...) in the kind suggestion satisfies. We > find it in section 12.4.3 and the ... is a list of sosofos. > > In that same section, there is another function, (literal string ...), > that returns a sosofo containing the text of the string. > > So you can do something like > > (element root > (sosofo-append > (literal "text to go before the generated html") > (process-children) > (literal "text to go after the generated html") > ) > ) > > Somewhere around the pages on Mulberry, (one of which is > http://www.mulberrytech.com/dsssl/dsssldoc/procedures/index.html) > there is a page that gives some ways to get line breaks into the > generated file where you want them (that may have been in a FAQ > collection). > > There is advice about customizing an existing > stylesheet without touching it by writing a > "driver" at > http://www.docbook.org/tdg/en/html/ch04.html#d0e11301 > which also sounds a bit like it applies to your > situation. > > Hope this helps, > > dan > > > On Mon, 8 Jul 2002, Antun Karlovac wrote: > > > Hi all > > > > I'm struggling with DSSSL at the moment. What I want do is to include a > > header and footer on each page. The pages will be processed by PHP on the > > server, after I have generated them. > > > > Therefore all I need to include is:- > > > > = Code =================================== > > <?php $thisPage = __FILE__; ?> > > <?php $urlPrefix = '../'; ?> > > <?php include '../includes/tree.php'; ?> > > <?php include '../includes/header.php'; ?> > > > > [generated HTML goes here] > > > > <?php include '../includes/footer.php'; ?> > > ========================================== > > > > The head, body, title etc. tags are all included by PHP, so I want ONLY > the > > contents of the body tag to go in the square brackets. > > > > I've been scouring the search engines and reading up about how to do this, > > and one helpful soul suggested: > > > > = Code =================================== > > (element root > > (sosofo-append > > (include-headerphp) > > (process-children) > > (process headerphp)) > > ========================================== > > > > But I can't find how to define "include-headerphp" in any of the > > tutorials/dsssl documentation I've read. Is it a text file with just the > PHP > > code? > > > > I'm OpenJade (which someone else set up for me), and the command I type is > > "make html". > > > > Thanks for any help in advance! > > > > Take care, > > > > Antun > > > > > > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist > > > > > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist > > > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
(dsssl) Center elements inside my t, Jose Waldemar | Thread | RE: (dsssl) Including chunks of HTM, Antun Karlovac |
RE: (dsssl) Including chunks of HTM, Ian Castle | Date | RE: (dsssl) Including chunks of HTM, Antun Karlovac |
Month |