XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 A Confusion of Styles
Subject: Wrong Namespace
Date: 2004-02-02 23:05:02
From: Christian Schmidt-Guetter

Hallo,


why do you use a wrong namespace in the *correct* XHTML version?


Read http://www.w3.org/TR/xhtml1/#strict


You can then read clearly:


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


NOT "http://www.w3.org/TR/1999/REC-html-in-xml" as you are using in your example.


Greetings
Christian Schmidt-Guetter



No Previous Message Previous Message   Next Message No Next Message


Titles Only Titles Only Newest First
  • Wrong Namespace
    2004-02-03 05:48:11 John Simpson [Reply]

    Quite right -- thanks for catching that. The namespace URI I used in the column *was* at one time the correct one for Transitional XHTML (see, e.g., http://www.w3.org/TR/1999/xhtml-modularization-19990406/DTD/doc/xhtml1-t.html). But that is no longer the case. The correct URI is indeed http://www.w3.org/1999/xhtml.


    Thanks again!


    JES

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938