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">
<title>Entity example</title>

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


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.

<!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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:47 UTC