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

Re: Should we care about elements order ?

  • From: Ken MacLeod <ken@b...>
  • To: xml-dev@l...
  • Date: Fri, 20 Oct 2000 19:07:32 -0500

uri.c
Tim Bray <tbray@t...> writes:

> At 05:20 PM 20/10/00 +0200, Eric van der Vlist wrote:
> >1) Should we always pay attention to the relative order of the
> >elements within XML documents ?
> 
> No.  Tons of conventional business data is oblivious to the order of
> its fields, and one of the nice things about an RDBMS is that I can
> arrange for the rows of the table and the colums of a row to be in
> any order I like.
> 
> XML is differentiated in that it is *possible* (not necessary) to
> deal with order-significant data.  The most obvious examples where
> this is useful are in the publishing space, but there are others.
> In my opinion, this is the one aspect of XML that is the hardest to
> deal with when trying to apply traditional relational
> technology. -Tim

One of the underlying questions, which is in the original post but
hasn't come up in the followups, is in a situation where one *doesn't*
want to enforce element order, especially in which order groups of
elements from different namespaces occur, can one still perform
validation with any current/popular/recommended schema language?

A corollary is when you have a structure like this:

  <aa xmlns="uri:a"
      xmlns:b="uri:b"
      xmlns:c="uri:c">
   <b:b/>
   <c:c/>
  </aa>

and you have schemas available to you for uri:a, uri:b, but not uri:c.
Can you validate the structures for uri:a and uri:b, and still have
uri:a allow for elements, unvalidated internally, from other
namespaces, like uri:c?

It's not a big deal if the answer is "No", but it does mean that for
those applications the current/popular/recommended schema languages
won't/can't be used.

  -- Ken

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.