html – 未定义的属性名称(xmlns)

这是我的 HTML页面的开头:

1. <?xml version="1.0" encoding="utf-8" ?>
2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3. <html xmlns="http://www.w3.org/1999/xhtml" lang="fr">
4.     (...)
5. </html>

是否有<?xml ...?>无论是否部分,Eclipse在第3行返回一个警告事件

Undefined attribute name (xmlns).

这个xmlns属性是正确验证所必需的,因此我不明白为什么Eclipse会返回警告.

此外,我正在使用Eclipse Indigo 3.7.2和Eclipse数据库中的最后一个PHP Developer Tool.

有谁知道如何删除此警告,或找到一种方法来跳过这个?

感谢阅读和帮助.

解决方法

这里有类似案例的错误https://bugs.eclipse.org/bugs/show_bug.cgi?id=313859

<?xml version="1.0" encoding="utf-8" ?>
<!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" lang="fr">
<head>
<title>Title of the document</title>
</head>

<body>
<div>The content of the document.</div>
</body>

</html>

应该验证.在Eclipse Juno中验证很好,在这里http://validator.w3.org.

相关文章

vue阻止冒泡事件 阻止点击事件的执行 &lt;div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些