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

Re: XML Schemas: Best Practices

  • From: Jon Cleaver <j.cleaver@e...>
  • To: "Roger L. Costello" <costello@m...>
  • Date: Thu, 19 Oct 2000 14:08:14 +0100

object oriented best practices
Roger, All,

There appears to be a convergence of thought that the design of an XML
schema is somewhat analogous to the creation of an Object Oriented Design
for a piece of code. There are instances where you want to maximise
component reuse and instances where you want data to be private. There are
also instances where you want to combine both of these.

What are the guidelines for creating private and public members of an OO
class? Is there a best practice for this - I assume there must be one as
part of an OO design course. Personally, I just decide which components are
needed to be viewed and which I would rather have left alone.

It seems to me that a fair chunk of this thinking will have already been
tackled by our OO design brethrin and there will be a published set of
guidelines. It is just a matter of finding them and their application to
this problem.

Hope this adds to the discussion

Cheers

Jonathan

"Roger L. Costello" wrote:

> Caroline Clewlow wrote:
> >
> > The third approach seems to bear a resemblance to the reasoning behind
> > object oriented approaches to programming.  i.e. re-use,
> > encapsulation, and data hiding ( namespace hiding in this case ;).
>
> Excellent observation.  I will note it in the online version of the Best
> Practices document.
>
> > To reflect this it may be an idea to name it the Object Design
> > approach
>
> I will mark this down as a possible name for the Third Design.
>
> > The choice between the three approaches seems to again come down to
> > a style driven decision.
>
> Oh my, I do hope that it's not a matter of "style".  "Style" seems to
> suggest "by intuition", or "by personal preference".  My hope is that we
> are developing guidelines to empower a schema designer can make
> intelligent decisions based upon a concrete decision space (i.e., all
> the design alternatives are spelled out, and the pros and cons of each
> design alternative is clearly understood).
>
> However, your point is well taken.  We have not clearly spelled out the
> implications of the First, Second, and Third design.  Please keep us
> focused until you (everyone) feel(s) comfortable that it is no longer a
> "style" decision, but rather an "engineering" decision.  Thanks! /Roger

--
Programming today is a race between software engineers striving
to build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.  So far, the Universe is
winning.



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.