DTD Question.

Paul Wain (pwain@acorn.co.uk)
Wed, 9 Aug 1995 14:13:00 +0100 (MET DST)

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>