A's content model

Terry Allen <terry@ora.com>
Date: Wed, 21 Sep 94 19:38:14 EDT
Message-id: <199409212335.QAA25549@rock>
Reply-To: terry@ora.com
Originator: html-wg@oclc.org
Sender: html-wg@oclc.org
Precedence: bulk
From: Terry Allen <terry@ora.com>
To: Multiple recipients of list <html-wg@oclc.org>
Subject: A's content model
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: HTML Working Group (Private)
I've just been writing a piece in HTML and had trouble with
anchors using Dan's 3 DTDs (or my 3in1.dtd derived from them).
The content model for A assumes content
and will not allow an omitted end tag (from html0.dtd).

<!ENTITY % A.content   "(%heading|%block|%text)+">
<!ELEMENT A     - - %A.content -(A)>

However, the only way an A works properly as a target in Mosaic
is if it is empty (has no end tag).  The example given in the doc
(Elements/A.html) is correct in this respect:

<DT><CODE><A NAME="4MvVSWBSRpF84aK">href</CODE>

(However, as NAME will eventually become an ID, the value of NAME
given here, starting with a number, will become dysfunctional,
because IDs must begin with a letter; how about knocking that 4 off 
the start of it and any others of the sort?)

So the content model should be changed to:

<!ELEMENT A     - O %A.content -(A)>

(that's a capital O, not a zero)

-- 
Terry Allen  (terry@ora.com)   Editor, Digital Media Group
O'Reilly & Associates, Inc.    Sebastopol, Calif., 95472