On Monday 29 August 2005 01:31, Hussein Shafie wrote:

> For XMLmind XML Editor, a document conforming to the XHTML DTD has ***no
> namespace, even if you add xmnlns="http://www.w3.org/1999/xhtml"; to the
> <html> root element***.

XHTML has a namespace and is required to do so.  See section 3.1.1 of
http://www.w3.org/TR/xhtml1/  (or any latter spec).  There it says:

"The root element of the document must contain an xmlns declaration for the
 XHTML namespace [XMLNS]. The namespace for XHTML is defined to be
 http://www.w3.org/1999/xhtml.  ..."

The DTD does some silly things like define a default attribute value for xmlns
 on the html element.

Now, my documents are not strictly conforming in that they do not have
a DOCTYPE on them.  Since I work in an XML Schema world, I consider this an
incompatibility that will be fixed in a future version.  Hopefully that will
 be XHTML 2

-- 
Alex Milowski ? ? ? ? ? ? ?                           alex at milowski.org

"The excellence of grammar as a guide is proportional to the paucity of 
the inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Reply via email to