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

RE: 'is-a' Relationships in XML?

  • From: "Michael Kay" <mike@saxonica.com>
  • To: <stephengreenubl@gmail.com>,"'xml-dev'" <xml-dev@l...>
  • Date: Mon, 3 May 2010 20:01:45 +0100

RE:  'is-a' Relationships in XML?
> 
> There seems to be no shortage of ways, thankfully, to express 
> 'has-a' relationships with XML (even without using a schema, 
> it seems there is an implicit 'has' relationship between 
> parent element and a child element or atttibute). There could 
> be said to be an implicit semantic 'has' relationship 
> declared between 'document' an 'date' when we write 
> <document><date>...</date>...</document>. Is there any way to 
> express the other key relationship of 'is-a' in XML? Is this 
> something a schema language can express? Can we say that 
> element (or even type) A 'is-an' element (or type) B? Any 
> plans to add this 'feature' to the XML technologies if it 
> isn't one already? It might be a key gap to fill. I might 
> want to somehow imply that my <invoice/> is a <document/>. 
> Are substitution groups (with, apparently, some inadequacies) 
> the only way to express such a relationship in XML?
> 

is-a can be a relationship between types, or a relationship between an
instance and a type.

As a relationship between types (every invoice is a document), it can be
represented in XSD using the concepts of derivation by restriction or by
extension; substitution groups also play into this.

As a relationship between an instance and a type, it is represented in the
PSVI by instance properties including [element declaration] and [type
definition].

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.