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

Schemas as Promises and Expectations

  • To: "Xml-Dev" <xml-dev@l...>
  • Subject: Schemas as Promises and Expectations
  • From: "Don Park" <donpark@d...>
  • Date: Fri, 7 Mar 2003 19:38:23 -0800
  • Importance: Normal
  • Organization: Docuverse

promises and schema
While reading through the registered namespace prefix thread, I had a
thought: use of schemas (and DTDs) so far has concentrated primarily from
the XML producer's perspective and not from the XML consumer's perspective.
Furthermore, we use a schema as a contract between XML producers and
consumers, binding them tightly and thus making it difficult for either
party to evolve and extend the contract independently.

Using schemas as a contract between two highly independent groups (producers
and consumers) seems unwieldy because the two groups must walk in sync as
the schema evolves.  What if the contract is divided into two parts, promise
and expectation?  An XML producer's version of the schema promises precisely
the content and structure of the produced XML documents.  An XML consumer's
version of the schema specifies the content and structure of the XML
documents the consumer expects.  Promises and expectations don't have to
match exactly to function.

From the consumer's perspective, all it really cares about is that its
getting everything it expects.  So the producer can add or remove elements
if the consumer doesn't care about those elements.  Structures can be
changed also if the change doesn't violate consumer's expectations.


Don Park


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.
First Name
Last Name
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.