Chris Tomlinson wrote:
> I know what I'm trying to do is certainly not an oddball thing in
True, it's not oddball, in that there is nothing whatsoever in the XML
namespaces spec to stop you binding the same namespace prefix to different
namespace identifiers in different documents, which is what you are doing.
After all, the namespace prefix is just syntactic sugar.
And this is indeed what you are doing, with
in one set of docs and
However, if you then mix documents with the same prefix bound to different
namespaces in the same collection, or keep them in distinct collections but
then try to query over more than one such collection, things are going to
get very complicated. Since the actual identifiers are what really matters,
you could of course use two distinct namespace prefixes in your queries,
each bound to one of the two identifiers, but keeping track of which is
which might get pretty mind-boggling. But from your posting it looks to me
as though you are hoping somehow to be able to access both namespaces using
a single prefix in your queries, which in your scenario won't work unless
your documents are very carefully segregated and queries are likewise very
It does strike me as a recipe for confusion all round to recycle the same
prefix for different namespaces within the same body of documents. That's
where the perplexity comes in as far as I can see. This practice is indeed
spec-conformant, but I don't think it's particularly desirable, even outside
the realms of querying collections of documents.