Re: trying to use SSI
Matthew Hixson <[email protected]> Mon, 20 Oct 2003 18:33:04 -0700
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
Nevermind. I just found another example online that has the proper SSI syntax. That was my problem. -M@ On Monday, October 20, 2003, at 06:19 PM, Matthew Hixson wrote: > I have a page I'm working on called login.html. I'd like to have my > header and footer placed around the body specified in login.html. > > -- begin login.html -- > <!#include file="header.ssi" > > <b>Here's the body content.</b> > <!#include file="footer.ssi" > > -- end login.html -- > > Beneath this directory I have an include directory containing > header.ssh and footer.ssi. I'm trying to generate the whole HTML page > by doing this: > > xmlc -ssi -ssibase ./include/ -warnings yes -parseinfo -docout > output.html login.html > > The output from XMLC shows: > > login.html:2: Warning: inserting missing 'title' element > 0>RootNode: '' > 4> DocTypeTag: 'html PUBLIC "-//W3C//DTD HTML 3.2//EN"' > 4> StartTag: html > 8> StartTag: head > 12> StartTag: title > 8> StartTag: body > 12> StartTag: b > 16> TextNode: 'Here's the body content.' > 12> TextNode: '' > > and output.html contains: > > <HTML><HEAD><TITLE></TITLE></HEAD><BODY><B>Here's the body > content.</B></BODY></HTML> > > It seems that XMLC is ignoring the SSI elements. I can even put > nonexistent filenames into the include statements and XMLC doesn't > complain. Nor does it have a problem if I pass a nonexistent > directory name with the -ssibase argument. > Is there something else I need to do to get SSI's to work? I just > want to be able to view the source HTML file in my browser before > having to run my servlet before I see anything, and I don't want to > cut & paste my header & footer into every document. > Any help would be appreciated. > Thanks, > -M@ > > _______________________________________________ > XMLC mailing list > [email protected] > http://www.enhydra.org/mailman/listinfo.cgi/xmlc >