[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Namespace Mistake?
- From: Michael Kay <mike@saxonica.com>
- To: Timothy W. Cook <tim@mlhim.org>
- Date: Thu, 10 Oct 2013 23:25:23 +0100
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:
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
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]