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

Re: Namespace Mistake?

  • From: Michael Kay <mike@saxonica.com>
  • To: Timothy W. Cook <tim@mlhim.org>
  • Date: Thu, 10 Oct 2013 23:25:23 +0100

Re:  Namespace Mistake?
On the whole, I think that there is a degree of consensus that changing namespaces when there is a minor change to a vocabulary is a bad idea. It creates too many difficulties for people writing code that has to process more than one version. Using a version attribute in the instance document works better.

But having made that mistake, I don't think it makes a great deal of difference whether you use the same prefix or different prefixes. Obviously if the same query references both namespaces then it will have to refer to them by different prefixes.

If you use software that is not namespace-aware (or not XML-aware) to process the documents, then using the same prefix may help, since you will be searching on prefixes rather than URIs. But I would hope you aren't doing that...

Michael Kay
Saxonica

On 10 Oct 2013, at 20:34, Timothy W. Cook wrote:

Hi All,

I don't recall my specific reasons now but I have been reusing a namespace prefix in schemas and instance data 'mlhim2' to reference different versions of a schema reference model. 

For example:
xmlns:mlhim2="http://www.mlhim.org/xmlns/mlhim2/2_4_1"  in one version of the schema and instance data and then  xmlns:mlhim2="http://www.mlhim.org/xmlns/mlhim2/2_4_2" in another version of the schema and instance data. 

Now I think this is a mistake when I need to have multiple versions of instance data in a single database and run queries across them.  

Should I change to start using:
to be more explicit and avoid any problems?

Thanks In Advance,
Tim



--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc           +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook



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