W3C home > Mailing lists > Public > public-html-xml@w3.org > October 2011

RE: How to add user defined namespaces to an XHTML5 document? was RE: HTML/XML TF report introductory text

From: Robert Leif <rleif@rleif.com>
Date: Mon, 24 Oct 2011 19:20:55 -0700
To: "'David Carlisle'" <davidc@nag.co.uk>
Cc: <public-html-xml@w3.org>
Message-ID: <058501cc92bc$ba6bb6b0$2f432410$@rleif.com>
David,
Thanks, I will now contact Altova, the publishers of XMLSpy.
Bob Leif

-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk] 
Sent: Monday, October 24, 2011 1:12 PM
To: rleif@rleif.com
Cc: public-html-xml@w3.org
Subject: Re: How to add user defined namespaces to an XHTML5 document? was RE: HTML/XML TF report introductory text

On 24/10/2011 20:42, Robert Leif wrote:
> I tested the following page with XMLSpy and although it is well 
> formed, it does not validate.

Does not validate against what schema?

Since there is no schema supplied as part of the standard you must be using a schema supplied by some other body. If the schema has not been updated to the current draft of HTML5 then that is an issue that you should take up with the schema author. Your example file looked valid to me (and validator.nu appeared to agree).

 > My question is how do I add namespaces to an XHTML5 document?

xhtml5 is xml so you use normal XML namespaces syntax xmlns:x="whatever".

If you want use of additional namespaces to be valid you need to provide an extended schema that defines the additional usage. This is no different from the situation with xhtml 1.x.

David
Received on Tuesday, 25 October 2011 02:21:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 25 October 2011 02:21:35 GMT