OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Namespaces and other stuff

At 06:41 PM 14/05/01 +0200, Guillermo J. HOYOS RIVERA wrote:
>                In an example XML page I found a reference like the next:
><article xmlns="http://www.xml.com/namespaces/first-x" 

Sigh.  I wrote that, and since it's (partially, and 
deliberately) wrong, I should explain.

First, this declaration says that any element which doesn't
have a prefix is in the namespace whose name is the string


Second, it says that any element or attribute that has the
prefix "html:" is in the namespace whose name is the string


Since, in the rest of the example, the "html:" prefix is 
applied to elements like <html:h1> and <html:a> which are 
from HTML, this suggests that the above is a reasonable
namespace name for HTML.  This is wrong.  The question of 
what a good namespace name for HTML is, in the general case,
is a tricky one: see 


The reason why the example uses this silly namespace name
is to demonstrate a bug in Internet Explorer 5.0's XML 
support (I have no idea if it's still there) where the 
software treated elements as html based on the "html:"
prefix rather than the actual namespace in use.  -Tim