Anonymous content types (WAS: Re: XML trade off 1 - DTD vs XML Schema)
ricko at allette.com.au
Wed Jul 21 20:36:28 BST 1999
From: John E. Simpson <simpson at polaris.net>
>So (acknowledging that you mean it to apply only to XML schemas, and
>the following examples don't conform to legitimate XML DTD syntax)
>suggesting element content models such as:
> <!ELEMENT king SINGLE >
>(The king element may contain any other single element)
> <!ELEMENT hands PAIR >
>(The hands element may contain any *pair* of other elements)
> <ELEMENT citizens UNIQUE >
>(The citizens element may contain any number of child elements, but
>child may appear only once within the citizens element)
Or maybe these could be split into SET and BAG in RDF fashion.
>Like that? These would all be subtypes of ANY, no?
If you like subtyping, sure. If you like extensibility, then I suppose
are extensions of EMPTY.
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev