[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Lesson Learned: Use namespaces for both markup and data
- From: James Fuller <james.fuller.2007@gmail.com>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Tue, 11 Aug 2009 21:57:35 +0200
> 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
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]