LISTSERV mailing list manager LISTSERV 15.5

Help for HTML-WG Archives


HTML-WG Archives

HTML-WG Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave HTML-WG
Reply | Post New Message
Search Archives


Subject: Re: Re implement, not reinvent
From: Peter Flynn <[log in to unmask]>
Reply-To:[log in to unmask]
Date:Wed, 4 Oct 95 05:19:28 EDT
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (45 lines)



Murray writes:

> My understanding of parameter entities is that they are only allowed within
> a markup declaration, not a document instance. How this might work for HTML
> I don't know -- I wouldn't want to break SGML conformance to allow
> parameter entities within HTML documents.

As I read it, the declaration of a parameter entity can occur within a 
document instance but must be within the <!doctype declaration, eg

   <!doctype html system "/dtdlib/html3.dtd" [
   <!entity % mybullet system "pix/redbull.gif">
   <!entity % regform system "forms/regform.html">
   ]>
   <html>
      <head>
         <title>etc
         <base href="http://www.foo.bar/">

It can then be referenced at any subsequent stage.

      </head>
      <body>
         <bodytext>
             <h1><img src="&mybullet;"> Foo Bar's Grill &amp Deli</h1>
             <p>You ain't seen nuthin' yet...fill in the form:</p>
             %regform;
          </bodytext>
       </body>
   </html>

(I hope I've got this right, someone's gone off with my Goldfarb, so
I'm not certain is what I've described is totally kosher.)

The use of parameter entities was the mechanism proposed in Nov 1983 
to let users specify in advance the content of frequently-occurring 
entities, or those entities like external files which might change name 
over time, and this lets you find the definition easily because it's at 
the top of the instance, rather than buried 6 feet deep in markup.

///Peter



Back to: Top of Message | Previous Page | Main HTML-WG Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager