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 Bag?

[ Lists Home | Date Index | Thread Index ]
  • From: "Frank Boumphrey" <bckman@ix.netcom.com>
  • To: "Roger L. Costello" <costello@mitre.org>, <xml-dev@ic.ac.uk>
  • Date: Fri, 26 Mar 1999 10:18:57 -0500

In SGML you can put
(a&b&c) whicch means that eachelement must appear only once but in any
order.

The best you can do in XML (without getting rediculosly complicatedis

(a|b|c)* which means that they can appear in any order, but there can be any
number of them

My understanding was that it was ommited because of the requirement

"XML software shall be easy to write"

It takes only a few lines of C code to validate the second requirement but a
LOT more to validate the first.

Frank
----- Original Message -----
From: Roger L. Costello <costello@mitre.org>
To: <xml-dev@ic.ac.uk>
Cc: <alk@mitre.org>; Roger Costello <costello@mitre.org>
Sent: Friday, March 26, 1999 6:59 AM
Subject: Why doesn't XML have Bag?


>Why doesn't XML support the notion of an unordered list of elements,
>i.e., a Bag?  Perhaps this is a limitation of DTD, not XML?  That is,
>DTDs do not support Bags, but XML has no such inherent limitation?  Does
>DCD support Bags?  /Roger
>
>
>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)
>
>


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