OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: ATTLIST question

[ 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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS