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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Why doesn't XML have Set?

[ Lists Home | Date Index | Thread Index ]
  • From: Paul Prescod <paul@prescod.net>
  • To: xml-dev@ic.ac.uk
  • Date: Fri, 26 Mar 1999 11:28:37 -0600

"Roger L. Costello" wrote:
> 
> Then let me ask another question - why do DTDs not allow me to specify
> an unordered list of elements?  For example,
> 
> <!ELEMENT Kitchen RDF:Bag(Sink, Stove, Refrigerator)>
> 
> With this notation I am trying to indicate that an XML document that
> conforms to this DTD must have a <Kitchen> element which has three child
> elements - <Sink>, <Stove>, and <Refrigerator>, and these child elements
> can be in any order.  Isn't this a useful thing?  

Is it useful? The author or text generator has been given no new
flexibility about *what* to write, only the order. What would they
indicate through the order, that the sink is "more important" than the
stove? That's a stretch. Allowing things in any order may be a convenience
for the generator but it will very seldom allow anything interesting to be
expressed. And it is an inconvenience for the consumer because now the
processing app has to walk around the tree to find out where the Stove is
rather than just going to the second child element.

> I have had a number of times where I wish that I could do this.

That wish usually goes away after a while. You start to wonder if there is
really any benefit in complicating your document type and creating more
work for yourself without making the language more expressive.

-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself
 http://itrc.uwaterloo.ca/~papresco

"Perpetually obsolescing and thus losing all data and programs every 10
years (the current pattern) is no way to run an information economy or
a civilization." - Stewart Brand, founder of the Whole Earth Catalog
http://www.wired.com/news/news/culture/story/10124.html

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

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

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