W3C home > Mailing lists > Public > www-talk@w3.org > July to August 1995

DTD Question.

From: Paul Wain <pwain@acorn.co.uk>
Date: Wed, 9 Aug 1995 14:13:00 +0100 (MET DST)
Message-Id: <9508091313.AA21923@paul.acorn.co.uk>
To: 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.
Received on Wednesday, 9 August 1995 09:16:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:18 GMT