Re: Include pieces of code in an HTML file

As mentioned before, inclusion has been discussed many times on this list.
See <http://lists.w3.org/Archives/Public/www-html/1998Apr/0032.html> for
the beginning of one discussion.

My views are that

SSI doesn't reduce server load when it could.

OBJECT can't include a document nicely, because that doucment whould be a
complete HTML document with its own title and style-sheet etc.  The
included document isn't part of the parse-tree, so it will mess up DOM and
DSSSL processing.

SGML already allows for external entites.  The specs only need to be
changed to allow the following construct:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd" [
<!ENTITY header SYSTEM "http://www.example.com/header.inc">
<!ENTITY footer SYSTEM "http://www.example.com/footer.inc">
]>
<HTML lang=en-CA>

<TITLE>Example</TITLE>

&header;

<!-- main body here -->

&footer;

This is perfectly in line with SGML, and I really don't know why it hasn't
been adopted.

Personally I write my HTML in any valid way that I want (using shorttags
to my hearts content) and then run

spam -p -x -x -momittag -mshorttag -mms 

on my file.

<http://www.jclark.com/sp/spam.htm>

-- 
Russell O'Connor                           roconnor@uwaterloo.ca
       <http://www.undergrad.math.uwaterloo.ca/~roconnor/>
``And truth irreversibly destroys the meaning of its own message''
-- Anindita Dutta, ``The Paradox of Truth, the Truth of Entropy''

Received on Friday, 1 October 1999 18:40:06 UTC