[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] namespaces redux
- From: Andrew Welch <andrew.j.welch@gmail.com>
- To: "Christopher R. Maden" <crism@maden.org>
- Date: Tue, 16 Oct 2012 19:56:44 +0100
>> My preference is to use the same string for prefix and namespace:
>>
>> xmlns:config="config"
>
> Then why bother to use namespaces at all? The sole virtue of
> namespaces is that they can be globally unique. Using trivial
> namespace URIs, one gets the complication and pain of namespaces and
> none of the benefit.
That's not the case though... they provide name disambiguation within
the same document - with xmlns:config="config" you could happily embed
xhtml fragments if needed, or any other xml you like in your "config"
xml. Equally a different company elsewhere in the globe, or across
the street, can do the same in their "config" xml. Happy days.
The only problem is if your "config" markup wants to mix with their
"config" markup, and the chances are so near zero there's no need for
the uniqueness.
--
Andrew Welch
http://andrewjwelch.com
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]