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

Re: Can XML Schemas do this?

  • To: "'xml-dev'" <xml-dev@l...>
  • Subject: Re: Can XML Schemas do this?
  • From: "Bryce K. Nielsen" <bryce@s...>
  • Date: Tue, 21 Jan 2003 14:35:00 -0700

Re:  Can XML Schemas do this?
> Plus, this HTML example should also highlight issues about streaming,
> buffering and incremental processing.

Yes, but I think HTML highlights the perfect reason for having both ordered
and unordered elements. So we say the <HTML> node needs to be ordered, but
the <BODY> node shouldn't be. The browser shouldn't care if it receives a
<P> node before or a <BR>, or a <TABLE> in front of a <UL> node. So, in XSDs
I suppose you'd have to describe this like this:

<sequence minOccurs="0" maxOccurs="unbounded">
  <element name="P"/ minOccurs="0" maxOccurs="1"/>
  <element name="BR"/ minOccurs="0" maxOccurs="1"/>
  <element name="TABLE"  minOccurs="0" maxOccurs="1"/>
  <!-- repeat for the other HTML tags -->

That just seems really backwards to me that when order isn't important, why
should the schema language make it important? Again, I understand that at
times, ordered-elements is very necessary, I just also think there should be
allowances for unordered-elements (and IMHO feel flexible XML should be the


P.S. Maybe I misunderstood the XML spec, but I didn't get the impression
that element-order was important to just XML. I thought it was something
that schema languages have introduced?


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.
First Name
Last Name
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.