Re: [xml-dev] Lesson Learned: Use namespaces for both markup and data

From
James Fuller <>
To
"Costello, Roger L." <>
Date
2009-08-11T19:57:35Z
ID
<>
Thread
Re: [xml-dev] Lesson Learned: Use namespaces for both markup and data
> Conversely, if I use a QName:
>
> <Example xmlns:aquarium="http://www.aquarium.org">
>    <Object>aquarium:tank</Object>
> </Example>
>
> and take the data out of context I get this:
>
>    aquarium:tank
>
> This appears to be richer.

I have not been following this (other other namespace related
threads), but it occurs to me if you take aquarium:tank out of context
it fundamentally loses its link to the  namespace e.g.
xmlns:aquarium="http://www.aquarium.org".

Prefixes are just prefixes, nothing more then a hint/reference to
something important (and hopefully specifically unique) ... once we
start thinking there is a shared dictionary of what prefixes are,
instead of a namespace URI isn't this where problems start creeping in
?

Jim Fuller