W3C home > Mailing lists > Public > www-html@w3.org > October 1999

Re: Include pieces of code in an HTML file

From: Russell Steven Shawn O'Connor <roconnor@wronski.math.uwaterloo.ca>
Date: Fri, 1 Oct 1999 18:40:12 -0400 (EDT)
To: W3C HTML <www-html@w3.org>
Message-ID: <Pine.SOL.3.95q.991001182300.27325B-100000@wronski.math.uwaterloo.ca>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:40 GMT