[VE][108] Namespace declarations invalid?

Small test case:

"""
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foo="http://begriffli.ch/foo-namespace">
<head><title>Foo</title></head>
<body></body>
</html>
"""

(Without the triple double quotes, of course.)

This doesn't pass, because the validator claims there is no xmlns:foo
attribute.  I thought XHTML documents were supposed to be XML
documents, and as such could have namespace declarations of that sort
in them with no problem.  Is that not the case?  I searched the Web
and the list archives, but couldn't find anything authoritative on the
topic.

   ---> Drake Wilson

Received on Friday, 26 January 2007 14:22:11 UTC