[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
XML Schema Versioning
Title: XML Schema Standards
Our organisation is just getting up to speed with
XML and we are currently trying to put some standards together. As part of this initiative I am trying
to come up with a strategy for versioning of XML Schemas. My current plan is that we develop 3
types of schemas 1) Core Component Library - A library of commonly used
simple types and attributes that define the structure of elements, e.g. "string20Type"
defines a string with a maximum length of 20 characters etc. 2) Business
Component Library - A library of simple and complex types that are more
specific to our individual business requirements, e.g. UnitOfMeasureType
that defines an enumerated list of Units of Measure, uses structures defined in
the Core Component Library. 3)
Application/Service specific schema - Schema specifically related to the
application or service to support a business process, reuses structures from
the Core Component Library and the Business Component Library.
The reason I have structured our schemas like this
is to try and get reuse out of standard elements and to avoid semantic translations
between applications that are reusing the same information.
However, this is causing me a big headache trying
to come up with a versioning strategy. It is likely that our schemas will form
the basis of Web Services and therefore will need to be both forward and
backward compatible. Obviously
adding new types to my library will not be a problem but if the business
changes the validation rules for a specific type, e.g. changes a pattern of a
string from [A-Z]{3}\d{1,4} to [A-Z]{4}\d{1,4}, then this
has broken my compatibility.
I want the schemas to do most of
the validation therefore "version" attribute in the <schema>
tag is insufficient. Creating my
own <simpleType> of "SchemaVersion"
is also insufficient as I am referencing 3 types of schema and my application
schema needs to be valid against the library schemas. Namespacing
does provide me with the validation levels I am looking for but then the schemaLocation will also need some level of versioning by
using file name versioning or directory versioning structure.
Does anyone have any experience
of version controlling their schemas, UBL has included versioning but to me
their solution doesn't really seem to hang together tightly enough.
I would be grateful for any feedback from your
experiences.
--------------------------------------------------
Jon Barwell
Technical
Specialist
AAH
Pharmaceuticals
************************************************************************
DISCLAIMER
The information contained in this e-mail is confidential and is intended
for the recipient only.
If you have received it in error, please notify us immediately by reply
e-mail and then delete it from your system. Please do not copy it or
use it for any other purposes, or disclose the content of the e-mail
to any other person or store or copy the information in any medium.
The views contained in this e-mail are those of the author and not
necessarily those of Admenta UK Group.
************************************************************************
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|