[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Must DTDs constrain order?

  • From: Soumitra Sengupta <soumitra@b...>
  • To: Michael Rossi <mrossi@c...>
  • Date: Fri, 27 Oct 2000 10:56:54 -0700

Re: Must DTDs constrain order?


Michael Rossi wrote:

> Evan Lenz wrote:
> >
> > In a DTD, is it possible to not constrain order on a given set of possible
> > elements, while still constraining quantity?
> >
> > For example
> >
> > <!ELEMENT foo (bar, bat?, bang*)>
> >
> > Can I somehow allow bar, bat, and bang to be in any order?  I suspect not
> > but would love to be corrected.

I do not know what model you are planning to use but you could try the
following:

<!ELEMENT foo (bar |  bat  | bang)*>

It will not be unambiguous but will allow you to get it done.

--
Soumitra Sengupta, Ph.D.
Co-Founder and C.T.O.
B-Bop Associates Inc.
Phone: 650-340-2700
Fax  : 650-340-2701
Email: soumitra@b...
http://www.b-bop.com

begin:vcard 
n:Sengupta;Soumitra
tel;cell:408-489-5691
tel;fax:650-340-2701
tel;work:650-340-2700
x-mozilla-html:FALSE
url:www.b-bop.com
org:B-Bop
version:2.1
email;internet:soumitra@b...
title:Co-Founder and Chief Technology Officer
adr;quoted-printable:;;1350 Old Bayshore Highway=0D=0ASuite 100;Burlingame;CA;94010;USA
fn:Soumitra Sengupta, Ph.D.
end:vcard

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.