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

Re: using namespaces to version

  • From: David Carlisle <davidc@n...>
  • To: xml-dev@l...
  • Date: Thu, 03 May 2001 11:27:25 +0100

Re: using namespaces to version

> It is (needlessly) harder to get
> this to work properly if the one namespace URI applies to all versions of a
> schema.

But I think the mistake there is to tie the schema to the namespace.
It is helpful that in all versions of HTML the paragraph element is
called p. It gives a level of compatibility between versions.
If HTML2's paragraph had been <p-v2> and HTML3.2's was <p-v32>
then life would be more complicated, but you would still be able to get
by by stripping off the pars of names after the -.

Changing a namespace _only_ changes the names of the elements: it doesn't
do anything else, and in particular it doesn't do anything about schema.
You can get by by breaking apart the name into its local name but that
is more or less identical to splitting on "-" as above, and not much
more convenient in Xpath (for example).

DTD's can be specified by DOCTYPE and Schema can be specified by
schemaLocation or other means. If you want to specify a different schema
it is perfectly possible to do so without changing all your element
names by changing the DTD.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp

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.