W3C home > Mailing lists > Public > www-html@w3.org > April 1998

Re: include in html

From: Chris Maden <crism@ora.com>
Date: Fri, 17 Apr 1998 10:44:47 -0400
Message-Id: <199804171444.KAA19287@geode.ora.com>
To: www-html@w3.org
SGML has had an include facility since its standardization.  HTML
decided not to include this facility, but if client-side inclusion is
desired, it's the way to go.  XML uses this facility.  It would look
something like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
<!ENTITY headnav SYSTEM "header.html">
<!ENTITY footnav SYSTEM "footer.html">
]>
<html>
<title>Entity example</title>
<body>
&headnav;

<p>This is an example of declaring and referring to entities.</p>

&footnav;
</body>
</html>

It's a bit indirect, in that you have to first declare and then
reference the entities, which makes single-use entities a bit more
complicated than they need to be.  But browsers will be supporting
this for XML anyway, so we might as well use it in HTML.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
Received on Friday, 17 April 1998 10:38:40 GMT

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