[
Lists Home |
Date Index |
Thread Index
]
- From: tpassin@home.com
- To: James Gray <jmgii@yahoo.com>, John Cowan <jcowan@reutershealth.com>,xml-dev@xml.org
- Date: Thu, 28 Sep 2000 20:48:49 -0400
James Gray asked -
>
> Thanks for the reply -- would the corresponding
> XML look like this:
>
> <shirt>M</shirt>
>
> ?,
Nope, you can't restrict element content with a dtd - attributes are what
you want
<shirt size='M'/>
Or you could use empty elements, but it's clumsier for this application:
<shirt><M/></shirt>
(You could specify empty elements like this in a dtd, too)
Cheers,
Tom Passin
|