|
[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
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








