[Home] [By Thread] [By Date] [Recent Entries]

  • From: tpassin@h...
  • To: James Gray <jmgii@y...>, John Cowan <jcowan@r...>,xml-dev@x...
  • 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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member