Re: How is this invalid?

On Mon, 16 Jan 2006, magick wrote:

> I think it has something to do with the way I wrote the DTD but I don't think 
> it's wrong.

The DTD is wrong. It has
<!ELEMENT family (person,name,yearborn,sex)> 
which means that a family consists of elements person, name, yearborn, and 
sex, each occurring exactly one. What you most probably mean is
<!ELEMENT family (person)+>
which means that a family consists of one or more persons (each of which 
contains what the definition for person says).

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Tuesday, 17 January 2006 06:52:40 UTC