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

Re: Derivation by Restriction

  • From: Stefan Haustein <stefan.haustein@t...>
  • To: "Fabio Arciniegas A." <l-arcini@u...>
  • Date: Sun, 23 Jan 2000 13:11:14 +0100

derivation of stefan
> During the writing of some C++ classes for the representation of data
> conforming with a particular schema I began to wonder about the
> "translation" of an arbitrary schema to domain specific objects
> (pretty much in the way exactml or some oracle products do nowadays
> with DTDs) and I started to wonder about the implications of
> derivation by restriction.
> 
> What I'm looking for is whether the impedance of Der. by Rest. on OO
> apps/representations has been considered by anyone before...(not a
> basic description of how derivation works,Nikita.But thanks).

I think the main point here is that derivation in 
object orientation means specialization. So if B is 
a subclass of A, you can replace any occurence of A 
by B. If you specialize B by restriction, that does 
not hurt object orientation as long a any instance of 
B is still a valid instance of A, too.

This principle would be violated if you "restrict" B 
that a subelement required in A is not required in B. 
In fact, that would not be a specialization or 
restriction but a generalization. If I read the specs 
right, you are not allowed to widen the [minOccurs...
maxOccurs] interval, so the problem you address seems 
not exist.

Best regards

Stefan

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@i... the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.



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.