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

Re: What are the characteristics of a good type system forXML?


good type
[Dare Obasanjo]

Defining a type system via the narrow lens of validation is partly the
cause of what many term the "brokenness" of W3C XML Schema and why some
of our devs and testers (of which I used to be one) have had some issues
with the XQuery type system. Watching the same mistake repeat itself on
XML-DEV even with the hindsight provided by W3C XML Schema is oddly like
watching a train wreck in slo mo.

[I had previously said]
> In turn this notion implies the possibility of a validity
> state of "well formed and correctly structured but with the
> wrong simple types somewhere".
> That would be interesting because you could still picture
> doing useful processing, and perhaps even casting the wrong
> types to the ones you were interested in.
>

[Tom P]

If you thought I mainly types in connection with validation, I did not.  I
thought mainly of simple types as they would be encountered element by
element, separate from validation.  However, I was thinking about how
validation had gotten mixed up with value types, and that led to my remark,
which actually, I think, is considering value types as basically separate
from validation (hence the possibility of valid structure without value type
validity).

But if you did want to check validity of value types against something-
shall we call it a schema? - you would sometimes to be able to say what
structural locations you were requiring your value types to be at.  So once
you had a workable type system for values (by "value types" I mean the
equivalent of "simple types" that is, character content of elements and
character values of attributes), it would be natural to want to use it with
your schema apparatus - pluggable types, of course.

Does any of this go against what you said above?

Cheers,

Tom P



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.