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

Re: Two quick questions regarding restriction in XML Schema


bowling team names

XML Schema does exactly what typical programming languages provide,
probably slightly more using block etc.

However, the question is do you really care what type names the user
provides...

your example is not very clear -- you allow president and VPs to form a
bowling team based on your subtype relationships.

Probably the question you wanted to ask is as follows:
Suppose you have a professor and student defined by
professor -> (name, university?)
student -> (name, university)

now, the implicit subtyping will give student is a subtype of professor...
But this seems like it should not happen...

The problem with XML is given a document with anode having children
name and university, if we validate it againt professor and against
student, they both return true, So who determines what the type should
be?? These are things which should be thought about..

anyways.. cheers - murali.

On Wed, 22 May 2002, Jeff Greif wrote:

> There is some danger in using 'accidental' subtype relationships that
> arise from similar but unrelated hedge types.
>
> We could have:
>    president isa manager isa employee isa person
>   vice-president isa manager isa employee isa person
>
> and hedge types:
> company-bowling-team -> (employee+)
> 5-year-plan-strategists -> (president, vice-president*)
>
> Yes, the president and vice-presidents could form a bowling team,
> but it's unlikely that the author of these types had that in mind.
>
> Jeff
>
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>



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.