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

RE: Database schema

From: Michael Kay <mike@saxonica.com>
Date: Thu, 3 Apr 2008 18:48:33 +0800
To: "'Boris Kolpackov'" <boris@codesynthesis.com>
Cc: "'Mansour Al Akeel'" <mansour.alakeel@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <018001c89578$44c98210$e4f9a8c0@turtle>
RE: Database schema

> There are ways to specify in XML Schema whether elements 
> should appear in a particular order or not (xs:sequence vs 
> xs:all). What you are probably saying here is that if the 
> schema says that elements can appear in any order, it does 
> not mean that the actual order of elements as they appear in 
> XML documents is insignificant to the application logic.

What I meant was that if you say

<xs:element name="authors">
  <xs:complexType>
    <xs:element name="author" maxOccurs="unbounded"/>
  </xs:complexType>
</xs:element>

then there is no way of knowing whether the order of the authors is
important. Because in the relational model tuples are unordered, significant
order needs to be represented in some other way, for example with integer
sequence numbers - which isn't an ideal representation if the sequence also
needs to be updateable.

Michael Kay
    
Received on Thursday, 3 April 2008 10:49:13 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.