W3C home > Mailing lists > Public > www-validator@w3.org > July 2005

XHTML2.0 error

From: Vitalie Ciobanu <aisberg@rau.ro>
Date: Sat, 9 Jul 2005 02:27:28 +0300
To: <www-validator@w3.org>
Message-ID: <E1Dr2E5-0005g9-0q@lisa.w3.org>
Hi, 

Let me quote something, please:

The document must conform to the constraints expressed in the schemas in
Appendix
<http://www.w3.org/TR/2005/WD-xhtml2-20050527/xhtml2.html#a_xhtml20_relaxng#
a_xhtml20_relaxng>  B - XHTML 2.0 RELAX NG Definition, Appendix
<http://www.w3.org/TR/2005/WD-xhtml2-20050527/xhtml2.html#a_xhtml20_schema#a
_xhtml20_schema>  D - XHTML 2.0 Schema and Appendix
<http://www.w3.org/TR/2005/WD-xhtml2-20050527/xhtml2.html#a_xhtml20_dtd#a_xh
tml20_dtd>  F - XHTML 2.0 Document Type Definition.

The local part of the root element of the document must be html.

The start tag of the root element of the document must explicitly contain an
xmlns declaration for the XHTML 2.0 namespace [XMLNS
<http://www.w3.org/TR/2005/WD-xhtml2-20050527/xhtml2.html#ref_XMLNS#ref_XMLN
S> ]. The namespace URI for XHTML 2.0 is defined to be
http://www.w3.org/2002/06/xhtml2/.

The start tag must also contain an
<http://www.w3.org/TR/2005/WD-xhtml2-20050527/xhtml2.html#adef_document_xsi:
schemaLocation#adef_document_xsi:schemaLocation> xsi:schemaLocation
attribute. The schema location for XHTML 2.0 is defined to be
http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd.

There should be a DOCTYPE declaration in the document prior to the root
element. If present, the public identifier included in the DOCTYPE
declaration must reference the DTD found in Appendix
<http://www.w3.org/TR/2005/WD-xhtml2-20050527/xhtml2.html#a_dtd_module_defs#
a_dtd_module_defs>  F using its Public Identifier. The system identifier may
be modified appropriately.

1.                         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN"
2.                             "http://www.w3.org/MarkUp/DTD/xhtml2.dtd">

 

 

When I validate my page I got this probems:

Line 6, column 46: value of fixed attribute "xmlns" not equal to default

<html xmlns="http://www.w3.org/2002/06/xhtml2/" xml:lang="en"

Line 7, column 16: there is no attribute "xmlns:xsi"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

Line 8, column 25: there is no attribute "xsi:schemaLocation"

xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/

 

 

and this is my declaration:

 

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/css" 

                    href="http://www.w3.org/MarkUp/style/xhtml2.css"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN"

    "http://www.w3.org/MarkUp/DTD/xhtml2.dtd">

<html xmlns="http://www.w3.org/2002/06/xhtml2/" xml:lang="en"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/

                          http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd"

> 

 

I can't find where the problem is, can you help me? Please!
Received on Sunday, 10 July 2005 10:06:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:19 GMT