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

RE: Creating a single XML vocabulary that is appropriately cus

  • From: "Michael Kay" <mike@s...>
  • To: "'Andrew Welch'" <andrew.j.welch@g...>,"'Costello, Roger L.'" <costello@m...>
  • Date: Wed, 9 Jul 2008 16:27:14 +0100

RE:  Creating a single XML vocabulary that is appropriately cus
> How do you create a single XML vocabulary, and validate that XML 
> vocabulary, for a community that has sub-groups that have overlapping 
> but different data needs?

With difficulty. I've seen the problem more often in a different guise: how
do you design a set of 400 messages for application data interchange that
reflect different information about different events affecting the same
objects?

One approach is to rediscover the concept of subschemas, as used in the
Codasyl database model. (In the relational model, these became views, but
that's a less useful concept in this context.)

You can start with a schema that makes everything mandatory, and construct
from it a subschema in which parts are optional and/or prohibited. Or you
can start with a schema in which everything is optional, and your subschema
can make some parts mandatory. Either way, I think you are using some kind
of process that modifies a schema to create a different schema. Plenty of
users are doing such things by applying XSLT transformations to XSD
documents, but it's not easy. Others are doing it using xs:redefines, which
is not much better. Others are simply giving up: I've seen users stuff
unwanted data into a message because it's too hard to change the schema to
make it optional, and I've seen users relax the schema to make an element
optional for everybody even though there are some contexts where it's
required.

Assertions in XSD 1.1 could be used to make the process much easier. If your
schema is permissive (everything optional), you can add assertions to make
it more constrained.

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



[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.