OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Two quick questions regarding restriction in XML Schema

[ Lists Home | Date Index | Thread Index ]

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

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>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS