[8853] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

DTD Question.

daemon@ATHENA.MIT.EDU (Paul Wain)
Wed Aug 9 09:17:51 1995

From: pwain@acorn.co.uk (Paul Wain)
To: www-talk@w3.org
Date: Wed, 9 Aug 1995 14:13:00 +0100 (MET DST)
Resent-From: www-talk@w3.org

Hi all,

Just been reading through the DTD, (as you do), and trying to understand
it. And Ive come accross the following bit that I feel is either unclear
or broken or misunderstood :)

The following 2 lines are taken from the DTD in the HTML spec at www.w3.org:

<!ENTITY % A.content "(%heading | %text)*">

<!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font">

Leaving aside the definitions of %heading, %phrase and %font, what I really
want to know is how can an <A...> </A> content legally have an embedded
<A...> </A> inside it? From reading the DTD I believe that:

<A HREF="http://foo/">Some text with <A HREF="http://bar/">another A tag</A>
	in it</A>

is perfectly valid. Is this correct? Or am I missunderstanding things?
Oh I can see that the following would be useful:

<A HREF="http://foo/">Some text with <A NAME="anchor">another A tag</A>
	in it</A>

Paul.


home help back first fref pref prev next nref lref last post