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

Re: Really Understood W3C Schema Complex Types?

  • From: Kohsuke KAWAGUCHI <kohsukekawaguchi@y...>
  • To: Don Smith <donalds@i...>, xml-dev@l...
  • Date: Thu, 06 Sep 2001 16:57:37 -0700

schema pedal effect

> I denied, and still deny, that
> complex types are so complicated people ought not try to understand them
> when they use them.

Since this is a subjective issue, I don't think I can convince you
otherwise. That said,


> The assertion "people don't know that using X produces the side
> effect Y" is no basis for criticism of the technology represented by X; it
> is a criticism of their knowledge of X.

I don't think so.  If my car manufacturer swaps the gas pedal and the
brake pedal, then I can reasonably say that that car is badly designed
and therefore hard to use.

I think the similar reasoning applies to the complex type.

Of course educating the schema authors is a nice solution to this
problem, but I've never claimed that this problem has no solution at all;
all I've claimed was that there is a problem.


> Since I can't be sure what the type of "annotation" is, I can't be sure what
> the type "repeating.derived" is supposed to be doing, relative to what
> "repeating" is doing. (Was this a typo? Did you mean to restrict
> "repeating"?) You say that whatever it's doing isn't allowed by W3C schemas,
> so I'm not following your thinking.

Yes, It was supposed to be a restriction. Sorry for the bad example. I
wrote a fixed example in a separate mail which I sent couple of days ago.



> I've included below some schema types that provide what you are asking for,
> but I can only presume that you will consider this a breaking of the type
> system. You'll have to explain to me why this is a breaking of the type, or
> whatever other objections you have to it.

I consider it a breaking of the type hierarchy because your example
doesn't have type relationship between "repeating" (zero or more
repetition of the list class) and "notSameRepeating" (one or more
repetition of the list class but the first one must be A).

Since every valid sequence of "notSameRepeating" is a valid sequence of
"repeating", I think it is reasonable that I want to derive
"notSameRepeating" from "repeating" by restriction.




regards,
----------------------
K.Kawaguchi
E-Mail: kohsukekawaguchi@y...


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.