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

Re: using namespaces to version

  • From: Brian Grainger <bgranam@h...>
  • To: xml-dev@l...
  • Date: Wed, 02 May 2001 20:47:18 -0600

Re: using namespaces to version
----- Original Message -----
From: "Warren Hedley" <w.hedley@a...>
To: <xml-dev@l...>
Sent: Wednesday, May 02, 2001 4:29 PM
Subject: using namespaces to version


> I'm wondering if anyone on the list has any strong opinions about
> the use of namespaces for versioning. In particular, am I likely
> to run into any problems if I base my namespaces on the Dublin Core
> format shown below?

I've used a system for versioning schemas based on uuid's which seems
to work quite well, although your mileage may vary.

I define a fixed namespace using the 'urn' prefix:

xmlns:foo="urn:uuid:" followed by a uuid in random hex notation of
8-4-4-4-12
characters.

To version the schema, I insert a 'versionid' attribute into the root
element of the
schema of type xsd:uriReference, and then use notation similar to my
namespace
layout:

versionid="cid:uuid:" followed again by a uuid, but of course different from
the
namespace uuid.

That way, my schema namespace never changes, and if I need to check the
version, I just refer to the 'versionid' attribute. The 'cid' prefix is
defined by
IANA, and means 'content identifier', so it seemed to me like the right
notation
to use for versioning.

Regards,
Brian







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-2007 All Rights Reserved.