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

RE: Schema concepts (was Re: W3C public lists (was Re: The Power of Grov

  • From: Matthew Fuchs <matthew.fuchs@c...>
  • To: XML-Dev Mailing list <xml-dev@x...>
  • Date: Thu, 10 Feb 2000 15:11:23 -0800

schema of cosmology
This is actually not a simple question and deserves an appropriate answer.
You are not the only person to ask this.  An XML schema language _does not_
need both <element> and <type>.  SOX [2], for example, is an XML schema
language that only has one abstraction for both of these at the top level.

However there is _a_ point of view which holds the beginning of Henry's
answer as an axiom and therefore requires, ab initio, that there are two
fundamentally different things.  I would compare it, by analogy, to Euclid's
5th axiom, that parallel lines never meet.  (I'm tempted to use Copernican
cosmology as my analogy, but that would be inflammatory.)

The Euclidean point of view held sway in the Schema WG.  Therefore XML
Schema (note the caps) created a type system with two fundamentally
different kinds of types, <element> and <type>  which behave in different
ways. (And don't ever let anyone try to tell you that a global <element>
declaration is not a type definition as you'd understand it from type
theory.  It simply is not a <type> definition.)  Within that type system,
Henry's answer is a tautology.  This decision had other ramifications, such
as allowing as many symbol spaces as can dance on the head of a pin and (I
believe) element equivalence classes.  But that's the type system we'll be
using - and it's certainly useable.

I've consoled myself by realizing it's not hard to specify a <metatype>
which unifies both <element> and <type> and therefore leaves open the
possibility of evolving to non-Euclidean markup in the future.

The XML Schema language will soon be moving to Candidate Recommendation
status (we hope).  During that time we will be looking for implementation
feedback.  If your experience shows that the type system enforced by the
current language is ill-fitted to your requirements, make that known.  CR is
when you get to show we're wrong.

Matthew Fuchs

> -----Original Message-----
> From: ht@c... [mailto:ht@c...]
> Sent: Thursday, February 10, 2000 5:30 AM
> To: XML-Dev Mailing list
> Subject: Schema concepts (was Re: W3C public lists (was Re: 
> The Power of
> Groves))
> 
> 
> Stefan Haustein <haustein@k...> writes:
> 
> > If that holds not only for Simon, I would like to ask why XML schema
> > needs both <element> and <type>. It looks like they both correspond
> > to the class concept in OOP. See
> > 
> > 
>
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2000JanMar/0101.
html
> 
> Because several elements may share a type:  this is illustrated in the 
> lengthy example in chapter 2 in the current PWD [1].  If having looked 
> at that you still don't understand, please come back with a question
> based on that example if possible.
> 
> ht
> 
> [1] http://www.w3.org/TR/xmlschema-1/#concepts-types

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.