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

RE: XML doesn't deserve its "X".

implicit processcontents
> Due to the way we write programs to process XML data, we weave a set of
> implicit patterns or schemas within our code, which resembles closely to the
> explicit schema of the XML data (that is, if there is such a schema). BTW,
> by schema I mean of course any kind of structural constraint on the
> document, not specifically schemas written in XML Schema.
> As soon as the explicit schema is changed, there is a mismatch with the
> implicit schema woven in the code, and the result is the code is broken.

This is a problem that Architectural Forms solves (perhaps THE problem).

Rather than making the schema implicit in your code, you make it an 
Architectural Form. Once this is externalised, then changes to the actual schema 
used by the data can be mapped back to the Architectural Form your application 
has been developed to process.

You can view an Architectural Form as a definition of the input criteria for an 
application. If the data conforms to this format, or can be mapped to that format, 
then it can be processed by the application. 

Having a schema to validate the Architectural Form simply allows you to test the input 
criteria, i.e. the pre-conditions for successful completion of that application. This is 
the power of Architectural Forms. 

The data formats can evolve separately to the code -- not indefinitely, because 
presumably there is additional value being added to the data with the additional 
markup. But application evolution becomes a local process and doesn't have to be globally 
co-ordinated or agreed.

Later in this thread, Eric suggested the addition of something like this to 

<xs:any namespace="##other" processContents="skip" 

This looks a lot like AFs to me.


Leigh Dodds, Research Group, Ingenta | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic |    sine necessitate"
http://www.xml.com/pub/xmldeviant    |     -- William of Ockham


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.