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

Re: XML-with-datatypes (was....)


datatype spirit
On Thu, Oct 13, 2005 at 09:45:42PM +0800, Henry Luo wrote:
>When we define the types for XML, of course we don't have to make it a 
>superset of every possilbe data type in the world.

Obviously.  Or maybe not.  Whose baby are you throwing out with that
bathwater?  The W3C XML Schema folks had this problem.

>The predefined data types in XML Schema is a good basis.

<snicker />  You're kidding, right?  <chuckle />  W3C XML Schema doesn't
have a type system, it has a bag.  <guffaw />  Is the point of this to raise
*every* possible permathread, at some point?

Nineteen "primitive" types.  Another twenty-five types derived from those
nineteen.  Nine of the primitives are date/time related.  The numeric types
aren't all related to one another.  NOTATION exists, with no relation to
either of the encoded primitive types, which are not related to each other. 
URIs are not related to strings, and neither are QNames.  Booleans are
unrelated to anything else in the world.

As type systems go, this one is mostly useful as a bad example.

>And we just need to define the syntax for the atomic types. The complex 
>types can be mapped into element-attribute structure.

You've completely ignored the point that others have made, that a label for
a type is potentially much more dynamic and interesting than a
bondage-and-discipline type specification.  Removing the ability to apply
different schemata to the same document is *reduction* in capability, and
one that can hurt.

>If the syntax in XML Schema is more or less sufficient to express all 
>the data values we want to exchange in XML, then we are not far off alreay.

<giggle type="hysterical" />

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
The flesh is strong.  The spirit stronger.  So shed your skin, baby.
Let it through.  Come on over.
                -- Amy Ray

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.